diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h index 62c6fe4cf12d7f019021dab56dba34f71630b835..01392dc945f13be46ea50dd1d790dc6f47a9bb1a 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; diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 7afbe5fb61d31dd2c84859d77fa52a2c6db3a5cc..24062ce7d9e4b4ed99ce7895b1e3e0c4da0cf12e 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -1,3 +1,4 @@ +stub-obj-y += arch_type.o stub-obj-y += bdrv-next-monitor-owned.o stub-obj-y += blk-commit-all.o stub-obj-y += blockdev-close-all-bdrv-states.o diff --git a/stubs/arch_type.c b/stubs/arch_type.c new file mode 100644 index 0000000000000000000000000000000000000000..fc5423bc98ac38368e6e82debe3e6c5f1e7fac1b --- /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;