diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-25 13:58:52 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-25 13:58:52 +0000 |
commit | 7bc45061eee222bd198db8485e2e9364190ff8f1 (patch) | |
tree | a7723dac9928857c1e859e66889cf2dea574c194 /target-mips/translate.c | |
parent | d52fff710acfeaad0102c9a0c04bfb614441dcac (diff) |
Fix lui sign extension.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2726 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/translate.c')
-rw-r--r-- | target-mips/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c index 3035ea26f0..96a0f37d27 100644 --- 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: |