projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4cba20
)
target-mips: fix DINSU instruction
author
Aurelien Jarno
<aurelien@aurel32.net>
Wed, 30 Jun 2010 18:00:31 +0000
(20:00 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Wed, 30 Jun 2010 18:00:31 +0000
(20:00 +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 8531d6cc12361f6152d2c76118d7c185db91d179..804b6e4bc46bfdba8219d575beb589b960d867e3 100644
(file)
--- a/
target-mips/translate.c
+++ b/
target-mips/translate.c
@@
-2764,7
+2764,7
@@
static void gen_bitops (DisasContext *ctx, uint32_t opc, int rt,
case OPC_DINSU:
if (lsb > msb)
goto fail;
- mask = ((1ULL << (msb - lsb + 1)) - 1) <<
lsb
;
+ mask = ((1ULL << (msb - lsb + 1)) - 1) <<
(lsb + 32)
;
gen_load_gpr(t0, rt);
tcg_gen_andi_tl(t0, t0, ~mask);
tcg_gen_shli_tl(t1, t1, lsb + 32);