From: Heinrich Schuchardt Date: Fri, 23 Feb 2024 16:25:59 +0000 (+0100) Subject: detect-virt: allow detection via device-tree on RISC-V X-Git-Tag: v256-rc1~755^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=819874adc07f2996c899f80f63207c4b15919b75;p=thirdparty%2Fsystemd.git detect-virt: allow detection via device-tree on RISC-V Signed-off-by: Heinrich Schuchardt --- diff --git a/src/basic/virt.c b/src/basic/virt.c index 375ef28216d..353bf373c3a 100644 --- a/src/basic/virt.c +++ b/src/basic/virt.c @@ -98,7 +98,7 @@ static Virtualization detect_vm_cpuid(void) { } static Virtualization detect_vm_device_tree(void) { -#if defined(__arm__) || defined(__aarch64__) || defined(__powerpc__) || defined(__powerpc64__) +#if defined(__arm__) || defined(__aarch64__) || defined(__powerpc__) || defined(__powerpc64__) || defined(__riscv) _cleanup_free_ char *hvtype = NULL; int r;