Skip to contentSkip to conversation

target/arm/hvf: Fix build failure due to missing cpregs.h header file

PATCH New Stephen Michael Jothen 1 participant 1 message May 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/arm/hvf: Fix build failure due to missing cpregs.h header file

cpregs.h was previously split out from cpu.h into a separate file, but I think this was forgotten to be included in hvf.c. I got a build failure when trying to build on Apple Silicon:

[...]

../target/arm/hvf/hvf.c:591:33: error: use of undeclared identifier 'ARM_CP_NO_RAW'

            assert(!(ri->type & ARM_CP_NO_RAW));
---
 target/arm/hvf/hvf.c | 1 +
 1 file changed, 1 insertion(+)
target/arm/hvf/hvf.c +1 -0
index 86710509d2..6ecf4669a0 100644
@@ -26,6 +26,7 @@
 #include "sysemu/cpus.h"
 #include "arm-powerctl.h"
 #include "target/arm/cpu.h"
+#include "target/arm/cpregs.h"
 #include "target/arm/internals.h"
 #include "trace/trace-target_arm_hvf.h"
 #include "migration/vmstate.h"
Signature · 1 line
2.30.1 (Apple Git-130)