File: maybe-fix-mips-validator.diff

package info (click to toggle)
moarvm 2018.12%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,196 kB
  • sloc: ansic: 223,172; perl: 7,638; sh: 4,452; makefile: 1,089; python: 568; asm: 8
file content (18 lines) | stat: -rw-r--r-- 833 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: this seems to fix intermittent validator problems on big endian
  archs, see https://github.com/rakudo/rakudo/issues/1711
Author: Robert Lemmen <robertle@semistable.com>
diff --git a/src/core/validation.c b/src/core/validation.c
index 870e6f4b6..88fb39533 100644
--- a/src/core/validation.c
+++ b/src/core/validation.c
@@ -661,8 +661,8 @@ void MVM_validate_static_frame(MVMThreadContext *tc,
     val->loc_count = fb->num_locals;
     val->loc_types = fb->local_types;
     val->bc_size   = fb->bytecode_size;
-    val->src_cur_op = fb->bytecode;
-    val->src_bc_end = fb->bytecode + fb->bytecode_size;
+    val->src_cur_op = fb->orig_bytecode;
+    val->src_bc_end = fb->orig_bytecode + fb->bytecode_size;
     val->labels    = MVM_calloc(1, fb->bytecode_size);
     val->cur_info  = NULL;
     val->cur_mark  = NULL;