projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88cbb98
)
target-mips: proper sign extension for 'SUBU rd, zero, rt'
author
Aurelien Jarno
<aurelien@aurel32.net>
Mon, 4 May 2009 07:54:57 +0000
(09:54 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Mon, 4 May 2009 08:05:21 +0000
(10:05 +0200)
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/translate.c
patch
|
blob
|
history
diff --git
a/target-mips/translate.c
b/target-mips/translate.c
index 2c163e0ca440f020f79cfc8a572b013e43fb00c5..7ecc9fdaf311753f925662a4124da52cf43b58ad 100644
(file)
--- a/
target-mips/translate.c
+++ b/
target-mips/translate.c
@@
-1604,6
+1604,7
@@
static void gen_arith (CPUState *env, DisasContext *ctx, uint32_t opc,
tcg_gen_ext32s_tl(cpu_gpr[rd], cpu_gpr[rd]);
} else if (rs == 0 && rt != 0) {
tcg_gen_neg_tl(cpu_gpr[rd], cpu_gpr[rt]);
+ tcg_gen_ext32s_tl(cpu_gpr[rd], cpu_gpr[rd]);
} else if (rs != 0 && rt == 0) {
tcg_gen_mov_tl(cpu_gpr[rd], cpu_gpr[rs]);
} else {