summaryrefslogtreecommitdiffstats
path: root/hw/virtio/virtio-iommu-pci.c
diff options
context:
space:
mode:
authorAlistair Francis2020-12-16 19:23:08 +0100
committerAlistair Francis2020-12-18 06:56:44 +0100
commit3ed2b8ac2dacc22c088ec5793ecde31db2fa0414 (patch)
tree734bb793e6c561360a30de8ecca155ebf2db112a /hw/virtio/virtio-iommu-pci.c
parenttarget/riscv: cpu: Set XLEN independently from target (diff)
downloadqemu-3ed2b8ac2dacc22c088ec5793ecde31db2fa0414.tar.gz
qemu-3ed2b8ac2dacc22c088ec5793ecde31db2fa0414.tar.xz
qemu-3ed2b8ac2dacc22c088ec5793ecde31db2fa0414.zip
hw/riscv: Use the CPU to determine if 32-bit
Instead of using string compares to determine if a RISC-V machine is using 32-bit or 64-bit CPUs we can use the initalised CPUs. This avoids us having to maintain a list of CPU names to compare against. This commit also fixes the name of the function to match the riscv_cpu_is_32bit() function. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 8ab7614e5df93ab5267788b73dcd75f9f5615e82.1608142916.git.alistair.francis@wdc.com
Diffstat (limited to 'hw/virtio/virtio-iommu-pci.c')
0 files changed, 0 insertions, 0 deletions