target/arm: Split out performance monitor regs to cpregs-pmu.c

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20250707151547.196393-4-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Richard Henderson 2025-07-07 09:15:47 -06:00 committed by Peter Maydell
parent a62fa0c7a0
commit ae2086426d
5 changed files with 1319 additions and 1284 deletions

1309
target/arm/cpregs-pmu.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1065,6 +1065,9 @@ void arm_cp_write_ignore(CPUARMState *env, const ARMCPRegInfo *ri,
/* CPReadFn that can be used for read-as-zero behaviour */ /* CPReadFn that can be used for read-as-zero behaviour */
uint64_t arm_cp_read_zero(CPUARMState *env, const ARMCPRegInfo *ri); uint64_t arm_cp_read_zero(CPUARMState *env, const ARMCPRegInfo *ri);
/* CPReadFn that just reads the value from ri->fieldoffset */
uint64_t raw_read(CPUARMState *env, const ARMCPRegInfo *ri);
/* CPWriteFn that just writes the value to ri->fieldoffset */ /* CPWriteFn that just writes the value to ri->fieldoffset */
void raw_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value); void raw_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value);

File diff suppressed because it is too large Load Diff

View File

@ -1873,6 +1873,8 @@ void define_debug_regs(ARMCPU *cpu);
void define_tlb_insn_regs(ARMCPU *cpu); void define_tlb_insn_regs(ARMCPU *cpu);
/* Add the cpreg definitions for AT instructions */ /* Add the cpreg definitions for AT instructions */
void define_at_insn_regs(ARMCPU *cpu); void define_at_insn_regs(ARMCPU *cpu);
/* Add the cpreg definitions for PM cpregs */
void define_pm_cpregs(ARMCPU *cpu);
/* Effective value of MDCR_EL2 */ /* Effective value of MDCR_EL2 */
static inline uint64_t arm_mdcr_el2_eff(CPUARMState *env) static inline uint64_t arm_mdcr_el2_eff(CPUARMState *env)

View File

@ -22,6 +22,7 @@ arm_user_ss.add(when: 'TARGET_AARCH64', if_false: files(
'cpu32-stubs.c', 'cpu32-stubs.c',
)) ))
arm_user_ss.add(files( arm_user_ss.add(files(
'cpregs-pmu.c',
'debug_helper.c', 'debug_helper.c',
'helper.c', 'helper.c',
'vfp_fpscr.c', 'vfp_fpscr.c',
@ -36,6 +37,7 @@ arm_common_system_ss.add(files(
'arch_dump.c', 'arch_dump.c',
'arm-powerctl.c', 'arm-powerctl.c',
'cortex-regs.c', 'cortex-regs.c',
'cpregs-pmu.c',
'debug_helper.c', 'debug_helper.c',
'helper.c', 'helper.c',
'machine.c', 'machine.c',