]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tcg/sparc/tcg-target.inc.c
tcg: Reduce max TB opcode count
[mirror_qemu.git] / tcg / sparc / tcg-target.inc.c
index bc673bd8c6c9f07f4dd216af6461e997eb4d85c5..04bdc3df5e7c2686db4acf8c049164e9e4105586 100644 (file)
@@ -1388,12 +1388,12 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc,
             tcg_out_arithi(s, TCG_REG_G0, TCG_REG_TB, 0, JMPL);
             tcg_out_nop(s);
         }
-        s->tb_jmp_reset_offset[a0] = c = tcg_current_code_size(s);
+        set_jmp_reset_offset(s, a0);
 
         /* For the unlinked path of goto_tb, we need to reset
            TCG_REG_TB to the beginning of this TB.  */
         if (USE_REG_TB) {
-            c = -c;
+            c = -tcg_current_code_size(s);
             if (check_fit_i32(c, 13)) {
                 tcg_out_arithi(s, TCG_REG_TB, TCG_REG_TB, c, ARITH_ADD);
             } else {