tcg-sparc: Fix ld64 for 32-bit mode
authorRichard Henderson <rth@twiddle.net>
Fri, 6 Sep 2013 21:20:00 +0000 (14:20 -0700)
committerRichard Henderson <rth@twiddle.net>
Mon, 17 Mar 2014 18:13:25 +0000 (11:13 -0700)
Since were not using an annulled branch, we need to put a nop
in the delay slot.

Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/sparc/tcg-target.c

index cbd1c91779daebbed79aae994636f1d3ac3fa028..b4598861163aa55fd3bda06294a91bbf49f17687 100644 (file)
@@ -963,6 +963,7 @@ static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, int sizeop)
         label_ptr[0] = (uint32_t *)s->code_ptr;
         tcg_out_bpcc0(s, COND_NE, BPCC_PN
                       | (TARGET_LONG_BITS == 64 ? BPCC_XCC : BPCC_ICC), 0);
+        tcg_out_nop(s);
 
         /* TLB Hit.  */
         /* Load all 64-bits into an O/G register.  */