diff options
Diffstat (limited to 'target-mips/translate.c')
-rw-r--r-- | target-mips/translate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c index 96a0f37d27..06581f2cc6 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -907,8 +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 = (int32_t)(imm << 16); - GEN_LOAD_IMM_TN(T0, uimm); + GEN_LOAD_IMM_TN(T0, uimm << 16); break; case OPC_SLL: case OPC_SRA: |