mirror of https://github.com/xemu-project/xemu.git
target/hppa: Fix load in do_load_32
The destination is TCGv_i32, so use tcg_gen_qemu_ld_i32 not tcg_gen_qemu_ld_reg. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
0238e678eb
commit
c1f55d9795
|
@ -1430,7 +1430,7 @@ static void do_load_32(DisasContext *ctx, TCGv_i32 dest, unsigned rb,
|
||||||
|
|
||||||
form_gva(ctx, &addr, &ofs, rb, rx, scale, disp, sp, modify,
|
form_gva(ctx, &addr, &ofs, rb, rx, scale, disp, sp, modify,
|
||||||
ctx->mmu_idx == MMU_PHYS_IDX);
|
ctx->mmu_idx == MMU_PHYS_IDX);
|
||||||
tcg_gen_qemu_ld_reg(dest, addr, ctx->mmu_idx, mop | UNALIGN(ctx));
|
tcg_gen_qemu_ld_i32(dest, addr, ctx->mmu_idx, mop | UNALIGN(ctx));
|
||||||
if (modify) {
|
if (modify) {
|
||||||
save_gpr(ctx, rb, ofs);
|
save_gpr(ctx, rb, ofs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue