mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-07 22:30:58 +00:00
target/mips: Clean up handling of CP0 register 30
Clean up handling of CP0 register 30. Backports commit 4bcf121ebb009db8d135d8819b8d5837cfd6bb37 from qemu
This commit is contained in:
parent
6fae1432ce
commit
d012faa9bf
|
@ -7600,7 +7600,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||||
break;
|
break;
|
||||||
case CP0_REGISTER_30:
|
case CP0_REGISTER_30:
|
||||||
switch (sel) {
|
switch (sel) {
|
||||||
case 0:
|
case CP0_REG30__ERROREPC:
|
||||||
tcg_gen_ld_tl(tcg_ctx, arg, tcg_ctx->cpu_env, offsetof(CPUMIPSState, CP0_ErrorEPC));
|
tcg_gen_ld_tl(tcg_ctx, arg, tcg_ctx->cpu_env, offsetof(CPUMIPSState, CP0_ErrorEPC));
|
||||||
tcg_gen_ext32s_tl(tcg_ctx, arg, arg);
|
tcg_gen_ext32s_tl(tcg_ctx, arg, arg);
|
||||||
register_name = "ErrorEPC";
|
register_name = "ErrorEPC";
|
||||||
|
@ -8352,7 +8352,7 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||||
break;
|
break;
|
||||||
case CP0_REGISTER_30:
|
case CP0_REGISTER_30:
|
||||||
switch (sel) {
|
switch (sel) {
|
||||||
case 0:
|
case CP0_REG30__ERROREPC:
|
||||||
tcg_gen_st_tl(tcg_ctx, arg, tcg_ctx->cpu_env, offsetof(CPUMIPSState, CP0_ErrorEPC));
|
tcg_gen_st_tl(tcg_ctx, arg, tcg_ctx->cpu_env, offsetof(CPUMIPSState, CP0_ErrorEPC));
|
||||||
register_name = "ErrorEPC";
|
register_name = "ErrorEPC";
|
||||||
break;
|
break;
|
||||||
|
@ -9075,7 +9075,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||||
break;
|
break;
|
||||||
case CP0_REGISTER_30:
|
case CP0_REGISTER_30:
|
||||||
switch (sel) {
|
switch (sel) {
|
||||||
case 0:
|
case CP0_REG30__ERROREPC:
|
||||||
tcg_gen_ld_tl(tcg_ctx, arg, tcg_ctx->cpu_env, offsetof(CPUMIPSState, CP0_ErrorEPC));
|
tcg_gen_ld_tl(tcg_ctx, arg, tcg_ctx->cpu_env, offsetof(CPUMIPSState, CP0_ErrorEPC));
|
||||||
register_name = "ErrorEPC";
|
register_name = "ErrorEPC";
|
||||||
break;
|
break;
|
||||||
|
@ -9809,7 +9809,7 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||||
break;
|
break;
|
||||||
case CP0_REGISTER_30:
|
case CP0_REGISTER_30:
|
||||||
switch (sel) {
|
switch (sel) {
|
||||||
case 0:
|
case CP0_REG30__ERROREPC:
|
||||||
tcg_gen_st_tl(tcg_ctx, arg, tcg_ctx->cpu_env, offsetof(CPUMIPSState, CP0_ErrorEPC));
|
tcg_gen_st_tl(tcg_ctx, arg, tcg_ctx->cpu_env, offsetof(CPUMIPSState, CP0_ErrorEPC));
|
||||||
register_name = "ErrorEPC";
|
register_name = "ErrorEPC";
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue