Skip to contentSkip to conversation

target/xtensa: add two missing headers to core import script

PATCH New Max Filippov 1 participant 1 message Feb 23, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/xtensa: add two missing headers to core import script

Include qemu/osdep.h and qemu-common.h at the beginning of imported xtensa core source file.

---
 target/xtensa/import_core.sh | 2 ++
 1 file changed, 2 insertions(+)
target/xtensa/import_core.sh +2 -0
index 351bee4..cebb6e9 100755
@@ -25,9 +25,11 @@ tar -xf "$OVERLAY" -O gdb/xtensa-config.c | \
     sed -n '1,/*\//p;/XTREG/,/XTREG_END/p' > "$TARGET"/gdb-config.c
 
 cat <<EOF > "${TARGET}.c"
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
 #include "exec/gdbstub.h"
+#include "qemu-common.h"
 #include "qemu/host-utils.h"
 
 #include "core-$NAME/core-isa.h"
Signature · 1 line
2.1.4