Re: [RFC v11 26/55] target/arm: split a15 cpu model and 32bit class functions to cpu32.c

2021-03-25 Thread Claudio Fontana
On 3/24/21 11:17 PM, Richard Henderson wrote: > On 3/23/21 9:46 AM, Claudio Fontana wrote: >> -static void arm_cpu_dump_state(CPUState *cs, FILE *f, int flags) >> -{ >> -ARMCPU *cpu = ARM_CPU(cs); >> -CPUARMState *env = >env; >> -int i; >> - >> -if (is_a64(env)) { >> -

Re: [RFC v11 26/55] target/arm: split a15 cpu model and 32bit class functions to cpu32.c

2021-03-24 Thread Richard Henderson
On 3/23/21 9:46 AM, Claudio Fontana wrote: -static void arm_cpu_dump_state(CPUState *cs, FILE *f, int flags) -{ -ARMCPU *cpu = ARM_CPU(cs); -CPUARMState *env = >env; -int i; - -if (is_a64(env)) { -aarch64_cpu_dump_state(cs, f, flags); -return; -} You've lost

[RFC v11 26/55] target/arm: split a15 cpu model and 32bit class functions to cpu32.c

2021-03-23 Thread Claudio Fontana
provide helper functions there to initialize 32bit models, and export the a15 cpu model. We still need to keep around a15 until we sort out the board configurations. cpu.c will continue to contain the common parts between 32 and 64. Note that we need to build cpu32 also for TARGET_AARCH64,