mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 21:40:49 +00:00
target/mips: Clean up translate.c
Mostly fix errors and warnings reported by 'checkpatch.pl -f'. Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com> Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <1569331602-2586-7-git-send-email-aleksandar.markovic@rt-rk.com>
This commit is contained in:
parent
f823213c22
commit
05aa7e934b
@ -7118,7 +7118,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||
tcg_gen_andi_tl(arg, arg, ~0xffff);
|
||||
register_name = "BadInstrX";
|
||||
break;
|
||||
default:
|
||||
default:
|
||||
goto cp0_unimplemented;
|
||||
}
|
||||
break;
|
||||
@ -7545,7 +7545,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||
case CP0_REG31__KSCRATCH6:
|
||||
CP0_CHECK(ctx->kscrexist & (1 << sel));
|
||||
tcg_gen_ld_tl(arg, cpu_env,
|
||||
offsetof(CPUMIPSState, CP0_KScratch[sel-2]));
|
||||
offsetof(CPUMIPSState, CP0_KScratch[sel - 2]));
|
||||
tcg_gen_ext32s_tl(arg, arg);
|
||||
register_name = "KScratch";
|
||||
break;
|
||||
@ -8295,7 +8295,7 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||
case CP0_REG31__KSCRATCH6:
|
||||
CP0_CHECK(ctx->kscrexist & (1 << sel));
|
||||
tcg_gen_st_tl(arg, cpu_env,
|
||||
offsetof(CPUMIPSState, CP0_KScratch[sel-2]));
|
||||
offsetof(CPUMIPSState, CP0_KScratch[sel - 2]));
|
||||
register_name = "KScratch";
|
||||
break;
|
||||
default:
|
||||
@ -8387,17 +8387,20 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||
break;
|
||||
case CP0_REG01__YQMASK:
|
||||
CP0_CHECK(ctx->insn_flags & ASE_MT);
|
||||
tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_YQMask));
|
||||
tcg_gen_ld_tl(arg, cpu_env,
|
||||
offsetof(CPUMIPSState, CP0_YQMask));
|
||||
register_name = "YQMask";
|
||||
break;
|
||||
case CP0_REG01__VPESCHEDULE:
|
||||
CP0_CHECK(ctx->insn_flags & ASE_MT);
|
||||
tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_VPESchedule));
|
||||
tcg_gen_ld_tl(arg, cpu_env,
|
||||
offsetof(CPUMIPSState, CP0_VPESchedule));
|
||||
register_name = "VPESchedule";
|
||||
break;
|
||||
case CP0_REG01__VPESCHEFBACK:
|
||||
CP0_CHECK(ctx->insn_flags & ASE_MT);
|
||||
tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_VPEScheFBack));
|
||||
tcg_gen_ld_tl(arg, cpu_env,
|
||||
offsetof(CPUMIPSState, CP0_VPEScheFBack));
|
||||
register_name = "VPEScheFBack";
|
||||
break;
|
||||
case CP0_REG01__VPEOPT:
|
||||
@ -8412,7 +8415,8 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||
case CP0_REGISTER_02:
|
||||
switch (sel) {
|
||||
case CP0_REG02__ENTRYLO0:
|
||||
tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_EntryLo0));
|
||||
tcg_gen_ld_tl(arg, cpu_env,
|
||||
offsetof(CPUMIPSState, CP0_EntryLo0));
|
||||
register_name = "EntryLo0";
|
||||
break;
|
||||
case CP0_REG02__TCSTATUS:
|
||||
@ -8756,7 +8760,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||
gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config5));
|
||||
register_name = "Config5";
|
||||
break;
|
||||
/* 6,7 are implementation dependent */
|
||||
/* 6,7 are implementation dependent */
|
||||
case CP0_REG16__CONFIG6:
|
||||
gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config6));
|
||||
register_name = "Config6";
|
||||
@ -8837,7 +8841,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||
}
|
||||
break;
|
||||
case CP0_REGISTER_21:
|
||||
/* Officially reserved, but sel 0 is used for R1x000 framemask */
|
||||
/* Officially reserved, but sel 0 is used for R1x000 framemask */
|
||||
CP0_CHECK(!(ctx->insn_flags & ISA_MIPS32R6));
|
||||
switch (sel) {
|
||||
case 0:
|
||||
@ -9022,7 +9026,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||
case CP0_REG31__KSCRATCH6:
|
||||
CP0_CHECK(ctx->kscrexist & (1 << sel));
|
||||
tcg_gen_ld_tl(arg, cpu_env,
|
||||
offsetof(CPUMIPSState, CP0_KScratch[sel-2]));
|
||||
offsetof(CPUMIPSState, CP0_KScratch[sel - 2]));
|
||||
register_name = "KScratch";
|
||||
break;
|
||||
default:
|
||||
@ -9112,12 +9116,14 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
||||
break;
|
||||
case CP0_REG01__VPESCHEDULE:
|
||||
CP0_CHECK(ctx->insn_flags & ASE_MT);
|
||||
tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_VPESchedule));
|
||||
tcg_gen_st_tl(arg, cpu_env,
|
||||
offsetof(CPUMIPSState, CP0_VPESchedule));
|
||||
register_name = "VPESchedule";
|
||||
break;
|
||||
case CP0_REG01__VPESCHEFBACK:
|
||||
CP0_CHECK(ctx->insn_flags & ASE_MT);
|
||||
tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_VPEScheFBack));
|
||||
tcg_gen_st_tl(arg, cpu_env,
|
||||
offsetof(CPUMIPSState, CP0_VPEScheFBack));
|
||||
register_name = "VPEScheFBack";
|
||||
break;
|
||||
case CP0_REG01__VPEOPT:
|
||||
|
Loading…
Reference in New Issue
Block a user