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:
Aleksandar Markovic 2019-11-18 23:04:16 -05:00 committed by Lioncash
parent 16e817b003
commit 5812937c52
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

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