summaryrefslogtreecommitdiffstats
path: root/tcg/mips/tcg-target.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2011-01-06 22:43:14 +0100
committerAurelien Jarno <aurelien@aurel32.net>2011-01-08 16:41:43 +0100
commitd43ffce14023df871d6065eb864d1f41eb441f37 (patch)
tree1684d4099e63087b85c27b4140968cba5ab75005 /tcg/mips/tcg-target.c
parent9a3abc21a61f95799c1f301b0b480a98a29fa0ff (diff)
downloadhqemu-d43ffce14023df871d6065eb864d1f41eb441f37.zip
hqemu-d43ffce14023df871d6065eb864d1f41eb441f37.tar.gz
tcg/mips: fix branch target change during code retranslation
TCG on MIPS was trying to avoid changing the branch offset, but didn't due to a stupid typo. Fix it. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tcg/mips/tcg-target.c')
-rw-r--r--tcg/mips/tcg-target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c
index 2af7a2e..4e92a50 100644
--- a/tcg/mips/tcg-target.c
+++ b/tcg/mips/tcg-target.c
@@ -352,7 +352,7 @@ static inline void tcg_out_opc_imm(TCGContext *s, int opc, int rt, int rs, int i
static inline void tcg_out_opc_br(TCGContext *s, int opc, int rt, int rs)
{
/* We need to keep the offset unchanged for retranslation */
- uint16_t offset = (uint16_t)(*(uint32_t *) &s->code_ptr);
+ uint16_t offset = (uint16_t)(*(uint32_t *) s->code_ptr);
tcg_out_opc_imm(s, opc, rt, rs, offset);
}
OpenPOWER on IntegriCloud