mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-10 22:45:36 +00:00
target/mips: Clean up handling of CP0 register 11
Clean up handling of CP0 register 11. Backports commit f5f3834ff0f7d237fa9d5c67544ae5f5d49eaaf7 from qemu
This commit is contained in:
parent
16e817b003
commit
5812937c52
|
@ -7245,7 +7245,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
|||
break;
|
||||
case CP0_REGISTER_11:
|
||||
switch (sel) {
|
||||
case 0:
|
||||
case CP0_REG11__COMPARE:
|
||||
gen_mfc0_load32(ctx, arg, offsetof(CPUMIPSState, CP0_Compare));
|
||||
register_name = "Compare";
|
||||
break;
|
||||
|
@ -7962,7 +7962,7 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
|||
break;
|
||||
case CP0_REGISTER_11:
|
||||
switch (sel) {
|
||||
case 0:
|
||||
case CP0_REG11__COMPARE:
|
||||
gen_helper_mtc0_compare(tcg_ctx, tcg_ctx->cpu_env, arg);
|
||||
register_name = "Compare";
|
||||
break;
|
||||
|
@ -8717,7 +8717,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
|||
break;
|
||||
case CP0_REGISTER_11:
|
||||
switch (sel) {
|
||||
case 0:
|
||||
case CP0_REG11__COMPARE:
|
||||
gen_mfc0_load32(ctx, arg, offsetof(CPUMIPSState, CP0_Compare));
|
||||
register_name = "Compare";
|
||||
break;
|
||||
|
@ -9416,7 +9416,7 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
|||
break;
|
||||
case CP0_REGISTER_11:
|
||||
switch (sel) {
|
||||
case 0:
|
||||
case CP0_REG11__COMPARE:
|
||||
gen_helper_mtc0_compare(tcg_ctx, tcg_ctx->cpu_env, arg);
|
||||
register_name = "Compare";
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue