Merge pull request #1509 from ispras/bugfix-lui

Bug fix for LUI instruction (MIPS)
This commit is contained in:
lazymio 2021-12-07 01:12:08 +01:00 committed by GitHub
commit 017c82e561
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;