On Sat, 20 Jul 2024 at 00:18, LIU Zhiwei <zhiwei_...@linux.alibaba.com> wrote: > > We may need 32-bit max or 32-bit any CPU for RV64 QEMU. Thus we add > these two CPUs for RV64 QEMU. > > The reason we don't expose them to RV32 QEMU is that we already have > max or any cpu with the same configuration. Another reason is that > we want to follow the RISC-V custom where addw instruction doesn't > exist in RV32 CPU.
You might want to consider whether you'd rather have this be "-cpu max,64=off" (replace "64" with whatever feature name the architecture uses for 64-bit support). That's the way I would plan to handle it for Arm (with "-cpu max,aarch64=off"; that works for KVM right now and if we ever wanted to handle it for TCG would be how I'd want the command line syntax to go). -- PMM