On 3/23/21 9:45 AM, 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<[email protected]>
---

I would expect ARM_CP_* to move out of cpu.h.

I don't see any use of the ARMCPRegInfo typedef remaining in cpu.h. Surely that should move to the new header.

Otherwise, it's really nice to get so many lines out of helper.c.


r~

Reply via email to