On Tue, May 20, 2025 at 1:33 PM Daniel Henrique Barboza <dbarb...@ventanamicro.com> wrote: > > In general a lot (if not all) of the profile code should be moved out > > of tcg-cpu.c and into riscv_cpu_class_base_init(). I didn't do that > > because I didn't want to balloon an already-large series, but it's a > > pretty obvious extension of the RISCVCPUDef concept to include all > > profile features. > > Note that KVM RISC-V does not have the same profile support as TCG - I'm not > sure if KVM RISC-V has RVA22 support, let alone RVA23. If we move the profile > logic to cpu.c we need to be careful with TCG assumptions affecting KVM CPUs.
Yes, but then that's even more of a reason to move code to cpu.c. It means that "-cpu rva22s64 --enable-kvm" will print the appropriate warning or errors. Paolo