From: Robert Lemmen <robertle@semistable.com>
Date: Fri, 4 Oct 2024 01:44:38 +0000
Subject: Try to fix validator on mips

Bug: https://github.com/rakudo/rakudo/issues/1711

this seems to fix intermittent validator problems on big endian
archs. See the linked bug.
===================================================================
---
 src/core/validation.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/validation.c b/src/core/validation.c
index 0e75173..7683cd0 100644
--- a/src/core/validation.c
+++ b/src/core/validation.c
@@ -551,8 +551,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;
