qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC v12 14/65] target/arm: split cpregs from tcg/helper.c


From: Richard Henderson
Subject: Re: [RFC v12 14/65] target/arm: split cpregs from tcg/helper.c
Date: Sun, 28 Mar 2021 09:49:02 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 3/26/21 1:36 PM, Claudio Fontana wrote:
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

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]