[Qemu-devel] [PATCH] target/xtensa: add two missing headers to core import script

Max Filippov posted 1 patch 7 years, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1487876014-23543-1-git-send-email-jcmvbkbc@gmail.com
Test checkpatch passed
Test docker passed
Test s390x passed
target/xtensa/import_core.sh | 2 ++
1 file changed, 2 insertions(+)
[Qemu-devel] [PATCH] target/xtensa: add two missing headers to core import script
Posted by Max Filippov 7 years, 1 month ago
Include qemu/osdep.h and qemu-common.h at the beginning of imported
xtensa core source file.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
 target/xtensa/import_core.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/xtensa/import_core.sh b/target/xtensa/import_core.sh
index 351bee4..cebb6e9 100755
--- a/target/xtensa/import_core.sh
+++ b/target/xtensa/import_core.sh
@@ -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"
-- 
2.1.4