Re: [PATCH 01/20] target/riscv: introduce TCG AccelCPUClass

2023-08-31 Thread Andrew Jones
On Fri, Aug 25, 2023 at 10:08:34AM -0300, Daniel Henrique Barboza wrote: > target/riscv/cpu.c needs to handle all possible accelerators (TCG and > KVM at this moment) during both init() and realize() time. This forces > us to resort to a lot of "if tcg" and "if kvm" throughout the code, > which isn

[PATCH 01/20] target/riscv: introduce TCG AccelCPUClass

2023-08-25 Thread Daniel Henrique Barboza
target/riscv/cpu.c needs to handle all possible accelerators (TCG and KVM at this moment) during both init() and realize() time. This forces us to resort to a lot of "if tcg" and "if kvm" throughout the code, which isn't wrong, but can get cluttered over time. Splitting acceleration specific code f