mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-25 20:49:49 +00:00
target/mips: Clean up handling of CP0 register 30
Clean up handling of CP0 register 30. Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com> Message-Id: <1567009614-12438-30-git-send-email-aleksandar.markovic@rt-rk.com>
This commit is contained in:
parent
af4bb6da80
commit
4bcf121ebb
@ -7521,7 +7521,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||
break;
|
||||
case CP0_REGISTER_30:
|
||||
switch (sel) {
|
||||
case 0:
|
||||
case CP0_REG30__ERROREPC:
|
||||
tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_ErrorEPC));
|
||||
tcg_gen_ext32s_tl(arg, arg);
|
||||
register_name = "ErrorEPC";
|
||||
@ -8272,7 +8272,7 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||
break;
|
||||
case CP0_REGISTER_30:
|
||||
switch (sel) {
|
||||
case 0:
|
||||
case CP0_REG30__ERROREPC:
|
||||
tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_ErrorEPC));
|
||||
register_name = "ErrorEPC";
|
||||
break;
|
||||
@ -8999,7 +8999,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||
break;
|
||||
case CP0_REGISTER_30:
|
||||
switch (sel) {
|
||||
case 0:
|
||||
case CP0_REG30__ERROREPC:
|
||||
tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_ErrorEPC));
|
||||
register_name = "ErrorEPC";
|
||||
break;
|
||||
@ -9736,7 +9736,7 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||
break;
|
||||
case CP0_REGISTER_30:
|
||||
switch (sel) {
|
||||
case 0:
|
||||
case CP0_REG30__ERROREPC:
|
||||
tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_ErrorEPC));
|
||||
register_name = "ErrorEPC";
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user