Merge pull request #1509 from ispras/bugfix-lui
Bug fix for LUI instruction (MIPS)
This commit is contained in:
commit
017c82e561
|
@ -2551,7 +2551,7 @@ static void gen_logic_imm(DisasContext *ctx, uint32_t opc,
|
|||
tcg_gen_ext32s_tl(tcg_ctx, *cpu_gpr[rt], *cpu_gpr[rt]);
|
||||
MIPS_DEBUG("aui %s, %s, %04x", regnames[rt], regnames[rs], imm);
|
||||
} else {
|
||||
tcg_gen_movi_tl(tcg_ctx, *cpu_gpr[rt], uimm << 16);
|
||||
tcg_gen_movi_tl(tcg_ctx, *cpu_gpr[rt], imm << 16);
|
||||
MIPS_DEBUG("lui %s, " TARGET_FMT_lx, regnames[rt], uimm);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue