xtensa: support 'make qemu' target

Provide generic support for running zephyr kernels on xtensa QEMU and
map D_233L SoC to dc233c QEMU core.

Change-Id: Ie804588f750213a7cc54dbc95c86ee4d62ba1ea5
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
Max Filippov 2017-01-19 11:55:16 -08:00 committed by Andrew Boie
commit f5f69c99c4
2 changed files with 9 additions and 0 deletions

View file

@ -41,3 +41,10 @@ cflags-$(CONFIG_LTO) += $(call cc-option,-flto,)
KBUILD_CFLAGS += $(cflags-y)
KBUILD_CXXFLAGS += $(cflags-y)
QEMU_CPU_TYPE_xtensa ?= unsupported
QEMU_FLAGS_xtensa = -cpu $(QEMU_CPU_TYPE_xtensa) \
-machine sim -semihosting -nographic
QEMU_xtensa = qemu-system-xtensa
export QEMU_FLAGS_xtensa QEMU_xtensa

View file

@ -1 +1,3 @@
obj-y = soc.o
QEMU_CPU_TYPE_xtensa = dc233c