projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d52fff7
)
Fix lui sign extension.
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 25 Apr 2007 13:58:52 +0000
(13:58 +0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 25 Apr 2007 13:58:52 +0000
(13:58 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2726
c046a42c
-6fe2-441c-8c8c-
71466251a162
target-mips/translate.c
patch
|
blob
|
history
diff --git
a/target-mips/translate.c
b/target-mips/translate.c
index 3035ea26f06fca9075471970ca17991d8e063419..96a0f37d276de477b9ed09696230fafce1e478f6 100644
(file)
--- a/
target-mips/translate.c
+++ b/
target-mips/translate.c
@@
-907,7
+907,7
@@
static void gen_arith_imm (DisasContext *ctx, uint32_t opc, int rt,
GEN_LOAD_IMM_TN(T1, uimm);
break;
case OPC_LUI:
- uimm
<<= 16
;
+ uimm
= (int32_t)(imm << 16)
;
GEN_LOAD_IMM_TN(T0, uimm);
break;
case OPC_SLL: