diff --git a/default-configs/devices/hexagon-softmmu.mak b/default-configs/devices/hexagon-softmmu.mak new file mode 100644 index 0000000000..c07ed1132f --- /dev/null +++ b/default-configs/devices/hexagon-softmmu.mak @@ -0,0 +1,5 @@ +# Default configuration for hexagon-softmmu + +# Boards: +# +CONFIG_HEXAGON_COMET=y diff --git a/default-configs/targets/hexagon-softmmu.mak b/default-configs/targets/hexagon-softmmu.mak new file mode 100644 index 0000000000..003ed0a408 --- /dev/null +++ b/default-configs/targets/hexagon-softmmu.mak @@ -0,0 +1 @@ +TARGET_ARCH=hexagon diff --git a/hw/hexagon/Kconfig b/hw/hexagon/Kconfig new file mode 100644 index 0000000000..9ae8a5ce30 --- /dev/null +++ b/hw/hexagon/Kconfig @@ -0,0 +1,2 @@ +config HEXAGON_COMET + bool diff --git a/hw/hexagon/boot.c b/hw/hexagon/boot.c new file mode 100644 index 0000000000..e69de29bb2 diff --git a/hw/hexagon/hexagon_comet.c b/hw/hexagon/hexagon_comet.c new file mode 100644 index 0000000000..e69de29bb2 diff --git a/hw/hexagon/meson.build b/hw/hexagon/meson.build new file mode 100644 index 0000000000..83f23f5368 --- /dev/null +++ b/hw/hexagon/meson.build @@ -0,0 +1,5 @@ +hexagon_ss = ss.source_set() +hexagon_ss.add(files('boot.c')) +hexagon_ss.add(when: 'CONFIG_HEXAGON_COMET', if_true: files('hexagon_comet.c')) + +hw_arch += {'hexagon': hexagon_ss} diff --git a/target/hexagon/machine.c b/target/hexagon/machine.c new file mode 100644 index 0000000000..e69de29bb2 diff --git a/target/hexagon/mmu.c b/target/hexagon/mmu.c new file mode 100644 index 0000000000..e69de29bb2 diff --git a/hw/Kconfig b/hw/Kconfig index 805860f564..7cfd7db690 100644 --- a/hw/Kconfig +++ b/hw/Kconfig @@ -62,6 +62,7 @@ source sparc/Kconfig source sparc64/Kconfig source tricore/Kconfig source xtensa/Kconfig +source hexagon/Kconfig # Symbols used by multiple targets config TEST_DEVICES diff --git a/hw/meson.build b/hw/meson.build index ba0601e36e..f43c4bacdd 100644 --- a/hw/meson.build +++ b/hw/meson.build @@ -46,6 +46,7 @@ subdir('alpha') subdir('arm') subdir('avr') subdir('cris') +subdir('hexagon') subdir('hppa') subdir('i386') subdir('m68k') diff --git a/target/hexagon/meson.build b/target/hexagon/meson.build index 6fd9360b74..aef434421f 100644 --- a/target/hexagon/meson.build +++ b/target/hexagon/meson.build @@ -176,3 +176,7 @@ hexagon_ss.add(files( )) target_arch += {'hexagon': hexagon_ss} + +hexagon_softmmu_ss = ss.source_set() +hexagon_softmmu_ss.add(files('mmu.c', 'machine.c')) +target_softmmu_arch += {'hexagon': hexagon_softmmu_ss}