summaryrefslogtreecommitdiffstats
path: root/include/sysemu/arch_init.h
diff options
context:
space:
mode:
authorKevin Wolf2020-02-24 15:29:50 +0100
committerKevin Wolf2020-03-06 17:15:38 +0100
commit5964ed56d9a138c1172db1335c65bda42c4f6260 (patch)
tree074b731956855e42a4d1bd58df71fdb80cf6ba91 /include/sysemu/arch_init.h
parentqemu-storage-daemon: Add barebone tool (diff)
downloadqemu-5964ed56d9a138c1172db1335c65bda42c4f6260.tar.gz
qemu-5964ed56d9a138c1172db1335c65bda42c4f6260.tar.xz
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 'include/sysemu/arch_init.h')
-rw-r--r--include/sysemu/arch_init.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h
index 62c6fe4cf1..01392dc945 100644
--- a/include/sysemu/arch_init.h
+++ b/include/sysemu/arch_init.h
@@ -24,6 +24,8 @@ enum {
QEMU_ARCH_NIOS2 = (1 << 17),
QEMU_ARCH_HPPA = (1 << 18),
QEMU_ARCH_RISCV = (1 << 19),
+
+ QEMU_ARCH_NONE = (1 << 31),
};
extern const uint32_t arch_type;