Bug fix for LUI instruction (MIPS)

This commit is contained in:
Fedor Nis'kov 2021-12-06 19:15:00 +03:00
parent 3fadb5aa5a
commit 4059906e78
1 changed files with 1 additions and 1 deletions

View File

@ -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;