give them their own common module cpregs.c, and an interface cpregs.h.
Extract the raw cpustate list to its own module.
This is more or less needed for KVM too.
For the tcg-specific registers, stuff them into tcg/cpregs.c
As a result, the monster that is tcg/helper.c is a bit less scary,
and a lot of stuff is removed from cpu.h too, relegated to cpregs.h.
Signed-off-by: Claudio Fontana<cfontana@suse.de>
---
target/arm/cpregs.h | 515 ++
target/arm/cpu.h | 481 --
hw/arm/pxa2xx.c | 1 +
hw/arm/pxa2xx_pic.c | 1 +
hw/intc/arm_gicv3_cpuif.c | 1 +
hw/intc/arm_gicv3_kvm.c | 1 +
target/arm/cpregs.c | 377 ++
target/arm/cpu.c | 1 +
target/arm/cpu64.c | 2 +-
target/arm/cpu_tcg.c | 1 +
target/arm/cpustate-list.c | 146 +
target/arm/gdbstub.c | 1 +
target/arm/machine.c | 1 +
target/arm/tcg/cpregs.c | 7675 ++++++++++++++++++++++++++++++
target/arm/tcg/helper.c | 8181 +-------------------------------
target/arm/tcg/op_helper.c | 1 +
target/arm/tcg/translate-a64.c | 1 +
target/arm/tcg/translate.c | 1 +
target/arm/meson.build | 2 +
target/arm/tcg/meson.build | 1 +
20 files changed, 8729 insertions(+), 8662 deletions(-)
create mode 100644 target/arm/cpregs.h
create mode 100644 target/arm/cpregs.c
create mode 100644 target/arm/cpustate-list.c
create mode 100644 target/arm/tcg/cpregs.c