mirror of https://gitee.com/openkylin/qemu.git
target/mips: Clean up handling of CP0 register 25
Clean up handling of CP0 register 25. Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com> Message-Id: <1567009614-12438-25-git-send-email-aleksandar.markovic@rt-rk.com>
This commit is contained in:
parent
8d7b4b6efb
commit
1176b328c3
|
@ -7418,35 +7418,35 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
|||
break;
|
||||
case CP0_REGISTER_25:
|
||||
switch (sel) {
|
||||
case 0:
|
||||
case CP0_REG25__PERFCTL0:
|
||||
gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Performance0));
|
||||
register_name = "Performance0";
|
||||
break;
|
||||
case 1:
|
||||
case CP0_REG25__PERFCNT0:
|
||||
/* gen_helper_mfc0_performance1(arg); */
|
||||
register_name = "Performance1";
|
||||
goto cp0_unimplemented;
|
||||
case 2:
|
||||
case CP0_REG25__PERFCTL1:
|
||||
/* gen_helper_mfc0_performance2(arg); */
|
||||
register_name = "Performance2";
|
||||
goto cp0_unimplemented;
|
||||
case 3:
|
||||
case CP0_REG25__PERFCNT1:
|
||||
/* gen_helper_mfc0_performance3(arg); */
|
||||
register_name = "Performance3";
|
||||
goto cp0_unimplemented;
|
||||
case 4:
|
||||
case CP0_REG25__PERFCTL2:
|
||||
/* gen_helper_mfc0_performance4(arg); */
|
||||
register_name = "Performance4";
|
||||
goto cp0_unimplemented;
|
||||
case 5:
|
||||
case CP0_REG25__PERFCNT2:
|
||||
/* gen_helper_mfc0_performance5(arg); */
|
||||
register_name = "Performance5";
|
||||
goto cp0_unimplemented;
|
||||
case 6:
|
||||
case CP0_REG25__PERFCTL3:
|
||||
/* gen_helper_mfc0_performance6(arg); */
|
||||
register_name = "Performance6";
|
||||
goto cp0_unimplemented;
|
||||
case 7:
|
||||
case CP0_REG25__PERFCNT3:
|
||||
/* gen_helper_mfc0_performance7(arg); */
|
||||
register_name = "Performance7";
|
||||
goto cp0_unimplemented;
|
||||
|
@ -8175,35 +8175,35 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
|||
break;
|
||||
case CP0_REGISTER_25:
|
||||
switch (sel) {
|
||||
case 0:
|
||||
case CP0_REG25__PERFCTL0:
|
||||
gen_helper_mtc0_performance0(cpu_env, arg);
|
||||
register_name = "Performance0";
|
||||
break;
|
||||
case 1:
|
||||
case CP0_REG25__PERFCNT0:
|
||||
/* gen_helper_mtc0_performance1(arg); */
|
||||
register_name = "Performance1";
|
||||
goto cp0_unimplemented;
|
||||
case 2:
|
||||
case CP0_REG25__PERFCTL1:
|
||||
/* gen_helper_mtc0_performance2(arg); */
|
||||
register_name = "Performance2";
|
||||
goto cp0_unimplemented;
|
||||
case 3:
|
||||
case CP0_REG25__PERFCNT1:
|
||||
/* gen_helper_mtc0_performance3(arg); */
|
||||
register_name = "Performance3";
|
||||
goto cp0_unimplemented;
|
||||
case 4:
|
||||
case CP0_REG25__PERFCTL2:
|
||||
/* gen_helper_mtc0_performance4(arg); */
|
||||
register_name = "Performance4";
|
||||
goto cp0_unimplemented;
|
||||
case 5:
|
||||
case CP0_REG25__PERFCNT2:
|
||||
/* gen_helper_mtc0_performance5(arg); */
|
||||
register_name = "Performance5";
|
||||
goto cp0_unimplemented;
|
||||
case 6:
|
||||
case CP0_REG25__PERFCTL3:
|
||||
/* gen_helper_mtc0_performance6(arg); */
|
||||
register_name = "Performance6";
|
||||
goto cp0_unimplemented;
|
||||
case 7:
|
||||
case CP0_REG25__PERFCNT3:
|
||||
/* gen_helper_mtc0_performance7(arg); */
|
||||
register_name = "Performance7";
|
||||
goto cp0_unimplemented;
|
||||
|
@ -8906,35 +8906,35 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
|||
break;
|
||||
case CP0_REGISTER_25:
|
||||
switch (sel) {
|
||||
case 0:
|
||||
case CP0_REG25__PERFCTL0:
|
||||
gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Performance0));
|
||||
register_name = "Performance0";
|
||||
break;
|
||||
case 1:
|
||||
case CP0_REG25__PERFCNT0:
|
||||
/* gen_helper_dmfc0_performance1(arg); */
|
||||
register_name = "Performance1";
|
||||
goto cp0_unimplemented;
|
||||
case 2:
|
||||
case CP0_REG25__PERFCTL1:
|
||||
/* gen_helper_dmfc0_performance2(arg); */
|
||||
register_name = "Performance2";
|
||||
goto cp0_unimplemented;
|
||||
case 3:
|
||||
case CP0_REG25__PERFCNT1:
|
||||
/* gen_helper_dmfc0_performance3(arg); */
|
||||
register_name = "Performance3";
|
||||
goto cp0_unimplemented;
|
||||
case 4:
|
||||
case CP0_REG25__PERFCTL2:
|
||||
/* gen_helper_dmfc0_performance4(arg); */
|
||||
register_name = "Performance4";
|
||||
goto cp0_unimplemented;
|
||||
case 5:
|
||||
case CP0_REG25__PERFCNT2:
|
||||
/* gen_helper_dmfc0_performance5(arg); */
|
||||
register_name = "Performance5";
|
||||
goto cp0_unimplemented;
|
||||
case 6:
|
||||
case CP0_REG25__PERFCTL3:
|
||||
/* gen_helper_dmfc0_performance6(arg); */
|
||||
register_name = "Performance6";
|
||||
goto cp0_unimplemented;
|
||||
case 7:
|
||||
case CP0_REG25__PERFCNT3:
|
||||
/* gen_helper_dmfc0_performance7(arg); */
|
||||
register_name = "Performance7";
|
||||
goto cp0_unimplemented;
|
||||
|
@ -9645,35 +9645,35 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
|||
break;
|
||||
case CP0_REGISTER_25:
|
||||
switch (sel) {
|
||||
case 0:
|
||||
case CP0_REG25__PERFCTL0:
|
||||
gen_helper_mtc0_performance0(cpu_env, arg);
|
||||
register_name = "Performance0";
|
||||
break;
|
||||
case 1:
|
||||
case CP0_REG25__PERFCNT0:
|
||||
/* gen_helper_mtc0_performance1(cpu_env, arg); */
|
||||
register_name = "Performance1";
|
||||
goto cp0_unimplemented;
|
||||
case 2:
|
||||
case CP0_REG25__PERFCTL1:
|
||||
/* gen_helper_mtc0_performance2(cpu_env, arg); */
|
||||
register_name = "Performance2";
|
||||
goto cp0_unimplemented;
|
||||
case 3:
|
||||
case CP0_REG25__PERFCNT1:
|
||||
/* gen_helper_mtc0_performance3(cpu_env, arg); */
|
||||
register_name = "Performance3";
|
||||
goto cp0_unimplemented;
|
||||
case 4:
|
||||
case CP0_REG25__PERFCTL2:
|
||||
/* gen_helper_mtc0_performance4(cpu_env, arg); */
|
||||
register_name = "Performance4";
|
||||
goto cp0_unimplemented;
|
||||
case 5:
|
||||
case CP0_REG25__PERFCNT2:
|
||||
/* gen_helper_mtc0_performance5(cpu_env, arg); */
|
||||
register_name = "Performance5";
|
||||
goto cp0_unimplemented;
|
||||
case 6:
|
||||
case CP0_REG25__PERFCTL3:
|
||||
/* gen_helper_mtc0_performance6(cpu_env, arg); */
|
||||
register_name = "Performance6";
|
||||
goto cp0_unimplemented;
|
||||
case 7:
|
||||
case CP0_REG25__PERFCNT3:
|
||||
/* gen_helper_mtc0_performance7(cpu_env, arg); */
|
||||
register_name = "Performance7";
|
||||
goto cp0_unimplemented;
|
||||
|
|
Loading…
Reference in New Issue