Commit 7bc45061 authored by ths's avatar ths

Fix lui sign extension.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2726 c046a42c-6fe2-441c-8c8c-71466251a162
parent d52fff71
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment