diff options
author | Richard Henderson <rth@twiddle.net> | 2013-03-28 05:37:51 +0000 |
---|---|---|
committer | Stefan Weil <sw@weilnetz.de> | 2013-04-11 19:58:21 +0200 |
commit | 03fc0548b70393b0c8d43703591a9e34fb8e3123 (patch) | |
tree | 82e215b29f3f994fd094f9b7a27ccfd699713ad6 /tcg | |
parent | 93b48c201eb6c0404d15550a0eaa3c0f7937e35e (diff) |
tci: Use 32-bit signed offsets to loads/stores
Since the change to tcg_exit_req, the first insn of every TB is
a load with a negative offset from env.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/tci/tcg-target.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tcg/tci/tcg-target.c b/tcg/tci/tcg-target.c index 2d561b32e1..a85095c8c2 100644 --- a/tcg/tci/tcg-target.c +++ b/tcg/tci/tcg-target.c @@ -513,7 +513,7 @@ static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg1, tcg_out_op_t(s, INDEX_op_ld_i64); tcg_out_r(s, ret); tcg_out_r(s, arg1); - assert(arg2 == (uint32_t)arg2); + assert(arg2 == (int32_t)arg2); tcg_out32(s, arg2); #else TODO(); @@ -636,7 +636,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, case INDEX_op_st_i64: tcg_out_r(s, args[0]); tcg_out_r(s, args[1]); - assert(args[2] == (uint32_t)args[2]); + assert(args[2] == (int32_t)args[2]); tcg_out32(s, args[2]); break; case INDEX_op_add_i32: |