mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
target/arm/helper: expose aarch64 cpu registration
associated define_arm_cp_regs are guarded by "cpu_isar_feature(aa64_*)", so it's safe to expose that code for arm target (32 bit). Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-id: 20250512180502.2395029-22-pierrick.bouvier@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
committed by
Peter Maydell
parent
d626a26dd1
commit
8eb048210e
@@ -6590,7 +6590,6 @@ static const ARMCPRegInfo zcr_reginfo[] = {
|
||||
.writefn = zcr_write, .raw_writefn = raw_write },
|
||||
};
|
||||
|
||||
#ifdef TARGET_AARCH64
|
||||
static CPAccessResult access_tpidr2(CPUARMState *env, const ARMCPRegInfo *ri,
|
||||
bool isread)
|
||||
{
|
||||
@@ -6824,7 +6823,6 @@ static const ARMCPRegInfo nmi_reginfo[] = {
|
||||
.writefn = aa64_allint_write, .readfn = aa64_allint_read,
|
||||
.resetfn = arm_cp_reset_ignore },
|
||||
};
|
||||
#endif /* TARGET_AARCH64 */
|
||||
|
||||
static void define_pmu_regs(ARMCPU *cpu)
|
||||
{
|
||||
@@ -7016,7 +7014,6 @@ static const ARMCPRegInfo lor_reginfo[] = {
|
||||
.type = ARM_CP_CONST, .resetvalue = 0 },
|
||||
};
|
||||
|
||||
#ifdef TARGET_AARCH64
|
||||
static CPAccessResult access_pauth(CPUARMState *env, const ARMCPRegInfo *ri,
|
||||
bool isread)
|
||||
{
|
||||
@@ -7509,8 +7506,6 @@ static const ARMCPRegInfo nv2_reginfo[] = {
|
||||
.fieldoffset = offsetof(CPUARMState, cp15.vncr_el2) },
|
||||
};
|
||||
|
||||
#endif /* TARGET_AARCH64 */
|
||||
|
||||
static CPAccessResult access_predinv(CPUARMState *env, const ARMCPRegInfo *ri,
|
||||
bool isread)
|
||||
{
|
||||
@@ -8951,7 +8946,6 @@ void register_cp_regs_for_features(ARMCPU *cpu)
|
||||
define_one_arm_cp_reg(cpu, &hcrx_el2_reginfo);
|
||||
}
|
||||
|
||||
#ifdef TARGET_AARCH64
|
||||
if (cpu_isar_feature(aa64_sme, cpu)) {
|
||||
define_arm_cp_regs(cpu, sme_reginfo);
|
||||
}
|
||||
@@ -9012,7 +9006,6 @@ void register_cp_regs_for_features(ARMCPU *cpu)
|
||||
if (cpu_isar_feature(aa64_nmi, cpu)) {
|
||||
define_arm_cp_regs(cpu, nmi_reginfo);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (cpu_isar_feature(any_predinv, cpu)) {
|
||||
define_arm_cp_regs(cpu, predinv_reginfo);
|
||||
|
||||
Reference in New Issue
Block a user