summary refs log tree commit diff stats
path: root/stubs/arch_type.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2020-02-24 15:29:50 +0100
committerKevin Wolf <kwolf@redhat.com>2020-03-06 17:15:38 +0100
commit5964ed56d9a138c1172db1335c65bda42c4f6260 (patch)
tree074b731956855e42a4d1bd58df71fdb80cf6ba91 /stubs/arch_type.c
parentf353415ffdadc9ed188e022855064401f9b2654e (diff)
downloadfocaccia-qemu-5964ed56d9a138c1172db1335c65bda42c4f6260.tar.gz
focaccia-qemu-5964ed56d9a138c1172db1335c65bda42c4f6260.zip
stubs: Add arch_type
blockdev.c uses the arch_type constant, so before we can use the file in
tools (i.e. outside of the system emulator), we need to add a stub for
it. A new QEMU_ARCH_NONE is introduced for this case.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200224143008.13362-3-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'stubs/arch_type.c')
-rw-r--r--stubs/arch_type.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stubs/arch_type.c b/stubs/arch_type.c
new file mode 100644
index 0000000000..fc5423bc98
--- /dev/null
+++ b/stubs/arch_type.c
@@ -0,0 +1,4 @@
+#include "qemu/osdep.h"
+#include "sysemu/arch_init.h"
+
+const uint32_t arch_type = QEMU_ARCH_NONE;