mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-23 13:21:03 +00:00
target-mips: fix {RD, WR}PGPR in microMIPS
rt, rs were swapped Backports commit 1bf5902de03732d4067c4e90171a1741d6542c45 from qemu
This commit is contained in:
parent
80341ab1d8
commit
af0e6e9be3
|
@ -13091,12 +13091,12 @@ static void gen_pool32axf (CPUMIPSState *env, DisasContext *ctx, int rt, int rs)
|
|||
case RDPGPR:
|
||||
check_cp0_enabled(ctx);
|
||||
check_insn(ctx, ISA_MIPS32R2);
|
||||
gen_load_srsgpr(ctx, rt, rs);
|
||||
gen_load_srsgpr(ctx, rs, rt);
|
||||
break;
|
||||
case WRPGPR:
|
||||
check_cp0_enabled(ctx);
|
||||
check_insn(ctx, ISA_MIPS32R2);
|
||||
gen_store_srsgpr(ctx, rt, rs);
|
||||
gen_store_srsgpr(ctx, rs, rt);
|
||||
break;
|
||||
default:
|
||||
goto pool32axf_invalid;
|
||||
|
|
Loading…
Reference in a new issue