mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
virsysinfo: fix RISC-V detection
The correct compiler define to detect the RISC-V architecture is __riscv. Fixes: b902cfece0db ("virsysinfo: Try reading DMI table") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
652b2eeaa9
commit
3e9440dbcb
@ -1254,7 +1254,7 @@ virSysinfoRead(void)
|
||||
(defined(__x86_64__) || \
|
||||
defined(__i386__) || \
|
||||
defined(__amd64__) || \
|
||||
defined(__riscv__) || \
|
||||
defined(__riscv) || \
|
||||
defined(__mips__) || \
|
||||
defined(__loongarch__))
|
||||
return virSysinfoReadDMI();
|
||||
|
Loading…
x
Reference in New Issue
Block a user