@@ -106,7 +106,7 @@ F: include/fpu/
Alpha
M: Richard Henderson <rth@twiddle.net>
S: Maintained
-F: target-alpha/
+F: target/alpha/
F: hw/alpha/
F: tests/tcg/alpha/
F: disas/alpha.c
@@ -115,7 +115,7 @@ ARM
M: Peter Maydell <peter.maydell@linaro.org>
L: qemu-arm@nongnu.org
S: Maintained
-F: target-arm/
+F: target/arm/
F: hw/arm/
F: hw/cpu/a*mpcore.c
F: include/hw/cpu/a*mpcore.h
@@ -126,7 +126,7 @@ F: disas/libvixl/
CRIS
M: Edgar E. Iglesias <edgar.iglesias@gmail.com>
S: Maintained
-F: target-cris/
+F: target/cris/
F: hw/cris/
F: include/hw/cris/
F: tests/tcg/cris/
@@ -135,7 +135,7 @@ F: disas/cris.c
LM32
M: Michael Walle <michael@walle.cc>
S: Maintained
-F: target-lm32/
+F: target/lm32/
F: disas/lm32.c
F: hw/lm32/
F: hw/*/lm32_*
@@ -147,13 +147,13 @@ F: tests/tcg/lm32/
M68K
M: Laurent Vivier <laurent@vivier.eu>
S: Maintained
-F: target-m68k/
+F: target/m68k/
F: disas/m68k.c
MicroBlaze
M: Edgar E. Iglesias <edgar.iglesias@gmail.com>
S: Maintained
-F: target-microblaze/
+F: target/microblaze/
F: hw/microblaze/
F: disas/microblaze.c
@@ -161,7 +161,7 @@ MIPS
M: Aurelien Jarno <aurelien@aurel32.net>
M: Yongbok Kim <yongbok.kim@imgtec.com>
S: Maintained
-F: target-mips/
+F: target/mips/
F: hw/mips/
F: hw/misc/mips_*
F: hw/intc/mips_gic.c
@@ -176,7 +176,7 @@ F: disas/mips.c
Moxie
M: Anthony Green <green@moxielogic.com>
S: Maintained
-F: target-moxie/
+F: target/moxie/
F: disas/moxie.c
F: hw/moxie/
F: default-configs/moxie-softmmu.mak
@@ -184,7 +184,7 @@ F: default-configs/moxie-softmmu.mak
OpenRISC
M: Jia Liu <proljc@gmail.com>
S: Maintained
-F: target-openrisc/
+F: target/openrisc/
F: hw/openrisc/
F: tests/tcg/openrisc/
@@ -193,7 +193,7 @@ M: David Gibson <david@gibson.dropbear.id.au>
M: Alexander Graf <agraf@suse.de>
L: qemu-ppc@nongnu.org
S: Maintained
-F: target-ppc/
+F: target/ppc/
F: hw/ppc/
F: include/hw/ppc/
F: disas/ppc.c
@@ -202,14 +202,14 @@ S390
M: Richard Henderson <rth@twiddle.net>
M: Alexander Graf <agraf@suse.de>
S: Maintained
-F: target-s390x/
+F: target/s390x/
F: hw/s390x/
F: disas/s390.c
SH4
M: Aurelien Jarno <aurelien@aurel32.net>
S: Odd Fixes
-F: target-sh4/
+F: target/sh4/
F: hw/sh4/
F: disas/sh4.c
F: include/hw/sh4/
@@ -218,7 +218,7 @@ SPARC
M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
M: Artyom Tarasenko <atar4qemu@gmail.com>
S: Maintained
-F: target-sparc/
+F: target/sparc/
F: hw/sparc/
F: hw/sparc64/
F: disas/sparc.c
@@ -226,7 +226,7 @@ F: disas/sparc.c
UniCore32
M: Guan Xuetao <gxt@mprc.pku.edu.cn>
S: Maintained
-F: target-unicore32/
+F: target/unicore32/
F: hw/unicore32/
F: include/hw/unicore32/
@@ -235,7 +235,7 @@ M: Paolo Bonzini <pbonzini@redhat.com>
M: Richard Henderson <rth@twiddle.net>
M: Eduardo Habkost <ehabkost@redhat.com>
S: Maintained
-F: target-i386/
+F: target/i386/
F: hw/i386/
F: disas/i386.c
@@ -243,14 +243,14 @@ Xtensa
M: Max Filippov <jcmvbkbc@gmail.com>
W: http://wiki.osll.spb.ru/doku.php?id=etc:users:jcmvbkbc:qemu-target-xtensa
S: Maintained
-F: target-xtensa/
+F: target/xtensa/
F: hw/xtensa/
F: tests/tcg/xtensa/
TriCore
M: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
S: Maintained
-F: target-tricore/
+F: target/tricore/
F: hw/tricore/
F: include/hw/tricore/
@@ -269,26 +269,26 @@ ARM
M: Peter Maydell <peter.maydell@linaro.org>
L: qemu-arm@nongnu.org
S: Maintained
-F: target-arm/kvm.c
+F: target/arm/kvm.c
MIPS
M: James Hogan <james.hogan@imgtec.com>
S: Maintained
-F: target-mips/kvm.c
+F: target/mips/kvm.c
PPC
M: Alexander Graf <agraf@suse.de>
S: Maintained
-F: target-ppc/kvm.c
+F: target/ppc/kvm.c
S390
M: Christian Borntraeger <borntraeger@de.ibm.com>
M: Cornelia Huck <cornelia.huck@de.ibm.com>
M: Alexander Graf <agraf@suse.de>
S: Maintained
-F: target-s390x/kvm.c
-F: target-s390x/ioinst.[ch]
-F: target-s390x/machine.c
+F: target/s390x/kvm.c
+F: target/s390x/ioinst.[ch]
+F: target/s390x/machine.c
F: hw/intc/s390_flic.c
F: hw/intc/s390_flic_kvm.c
F: include/hw/s390x/s390_flic.h
@@ -301,7 +301,7 @@ M: Paolo Bonzini <pbonzini@redhat.com>
M: Marcelo Tosatti <mtosatti@redhat.com>
L: kvm@vger.kernel.org
S: Supported
-F: target-i386/kvm.c
+F: target/i386/kvm.c
Guest CPU Cores (Xen):
----------------------
@@ -155,11 +155,11 @@ trace-events-y += hw/alpha/trace-events
trace-events-y += ui/trace-events
trace-events-y += audio/trace-events
trace-events-y += net/trace-events
-trace-events-y += target-arm/trace-events
-trace-events-y += target-i386/trace-events
-trace-events-y += target-sparc/trace-events
-trace-events-y += target-s390x/trace-events
-trace-events-y += target-ppc/trace-events
+trace-events-y += target/arm/trace-events
+trace-events-y += target/i386/trace-events
+trace-events-y += target/sparc/trace-events
+trace-events-y += target/s390x/trace-events
+trace-events-y += target/ppc/trace-events
trace-events-y += qom/trace-events
trace-events-y += linux-user/trace-events
trace-events-y += qapi/trace-events
@@ -11,7 +11,7 @@ $(call set-vpath, $(SRC_PATH):$(BUILD_DIR))
ifdef CONFIG_LINUX
QEMU_CFLAGS += -I../linux-headers
endif
-QEMU_CFLAGS += -I.. -I$(SRC_PATH)/target-$(TARGET_BASE_ARCH) -DNEED_CPU_H
+QEMU_CFLAGS += -I.. -I$(SRC_PATH)/target/$(TARGET_BASE_ARCH) -DNEED_CPU_H
QEMU_CFLAGS+=-I$(SRC_PATH)/include
@@ -92,7 +92,7 @@ obj-$(CONFIG_TCG_INTERPRETER) += tci.o
obj-y += tcg/tcg-common.o
obj-$(CONFIG_TCG_INTERPRETER) += disas/tci.o
obj-y += fpu/softfloat.o
-obj-y += target-$(TARGET_BASE_ARCH)/
+obj-y += target/$(TARGET_BASE_ARCH)/
obj-y += disas.o
obj-y += tcg-runtime.o
obj-$(call notempty,$(TARGET_XML_FILES)) += gdbstub-xml.o
@@ -21,9 +21,7 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "disas/bfd.h"
-//#include "sysdep.h"
-#include "target-cris/opcode-cris.h"
-//#include "libiberty.h"
+#include "target/cris/opcode-cris.h"
#define CONST_STRNEQ(STR1,STR2) (strncmp ((STR1), (STR2), sizeof (STR2) - 1) == 0)
@@ -3,7 +3,7 @@
#ifndef HW_ALPHA_SYS_H
#define HW_ALPHA_SYS_H
-#include "target-alpha/cpu-qom.h"
+#include "target/alpha/cpu-qom.h"
#include "hw/pci/pci.h"
#include "hw/pci/pci_host.h"
#include "hw/ide.h"
@@ -2,7 +2,7 @@
#define STRONGARM_H
#include "exec/memory.h"
-#include "target-arm/cpu-qom.h"
+#include "target/arm/cpu-qom.h"
#define SA_CS0 0x00000000
#define SA_CS1 0x08000000
@@ -33,7 +33,7 @@
#include "qemu/bitmap.h"
#include "trace.h"
#include "qom/cpu.h"
-#include "target-arm/cpu.h"
+#include "target/arm/cpu.h"
#include "hw/acpi/acpi-defs.h"
#include "hw/acpi/acpi.h"
#include "hw/nvram/fw_cfg.h"
@@ -29,7 +29,7 @@
#include "hw/pci/pci.h"
#include "qom/cpu.h"
#include "hw/i386/pc.h"
-#include "target-i386/cpu.h"
+#include "target/i386/cpu.h"
#include "hw/timer/hpet.h"
#include "hw/acpi/acpi-defs.h"
#include "hw/acpi/acpi.h"
@@ -15,7 +15,7 @@
#include "hw/i386/apic_internal.h"
#include "hw/pci/msi.h"
#include "sysemu/kvm.h"
-#include "target-i386/kvm_i386.h"
+#include "target/i386/kvm_i386.h"
static inline void kvm_apic_set_reg(struct kvm_lapic_state *kapic,
int reg_id, uint32_t val)
@@ -30,7 +30,7 @@
#include "hw/i386/ioapic_internal.h"
#include "include/hw/pci/msi.h"
#include "sysemu/kvm.h"
-#include "target-i386/cpu.h"
+#include "target/i386/cpu.h"
#include "hw/i386/apic-msidef.h"
#include "hw/i386/x86-iommu.h"
@@ -17,7 +17,7 @@
#include "hw/qdev.h"
#include "hw/isa/isa.h"
#include "sysemu/kvm.h"
-#include "target-i386/hyperv.h"
+#include "target/i386/hyperv.h"
#include "kvm_i386.h"
#define HV_TEST_DEV_MAX_SINT_ROUTES 64
@@ -9,7 +9,7 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
-#include "target-ppc/cpu.h"
+#include "target/ppc/cpu.h"
#include "hw/ppc/fdt.h"
@@ -22,7 +22,7 @@
#include "sysemu/sysemu.h"
#include "sysemu/numa.h"
#include "hw/hw.h"
-#include "target-ppc/cpu.h"
+#include "target/ppc/cpu.h"
#include "qemu/log.h"
#include "hw/ppc/fdt.h"
#include "hw/ppc/ppc.h"
@@ -20,7 +20,7 @@
#include "sysemu/sysemu.h"
#include "qapi/error.h"
#include "qemu/log.h"
-#include "target-ppc/cpu.h"
+#include "target/ppc/cpu.h"
#include "hw/ppc/ppc.h"
#include "hw/ppc/pnv.h"
#include "hw/ppc/pnv_core.h"
@@ -19,7 +19,7 @@
#include "qemu/osdep.h"
#include "sysemu/sysemu.h"
-#include "target-ppc/cpu.h"
+#include "target/ppc/cpu.h"
#include "qapi/error.h"
#include "qemu/log.h"
@@ -21,7 +21,7 @@
#include "hw/hw.h"
#include "qemu/log.h"
#include "sysemu/kvm.h"
-#include "target-ppc/cpu.h"
+#include "target/ppc/cpu.h"
#include "hw/sysbus.h"
#include "hw/ppc/fdt.h"
@@ -8,14 +8,14 @@
*/
#include "hw/cpu/core.h"
#include "hw/ppc/spapr_cpu_core.h"
-#include "target-ppc/cpu.h"
+#include "target/ppc/cpu.h"
#include "hw/ppc/spapr.h"
#include "hw/boards.h"
#include "qapi/error.h"
#include "sysemu/cpus.h"
-#include "target-ppc/kvm_ppc.h"
+#include "target/ppc/kvm_ppc.h"
#include "hw/ppc/ppc.h"
-#include "target-ppc/mmu-hash64.h"
+#include "target/ppc/mmu-hash64.h"
#include "sysemu/numa.h"
static void spapr_cpu_reset(void *opaque)
@@ -25,7 +25,7 @@
Shix 2.0 board by Alexis Polti, described at
https://web.archive.org/web/20070917001736/perso.enst.fr/~polti/realisations/shix20
- More information in target-sh4/README.sh4
+ More information in target/sh4/README.sh4
*/
#include "qemu/osdep.h"
#include "qapi/error.h"
@@ -12,7 +12,7 @@
#define HW_ARM_H
#include "exec/memory.h"
-#include "target-arm/cpu-qom.h"
+#include "target/arm/cpu-qom.h"
#include "hw/irq.h"
#include "qemu/notify.h"
@@ -27,7 +27,7 @@
#include "qemu-common.h"
#include "exec/memory.h"
-#include "target-arm/cpu-qom.h"
+#include "target/arm/cpu-qom.h"
#define EXYNOS4210_NCPUS 2
@@ -20,7 +20,7 @@
#include "exec/memory.h"
# define hw_omap_h "omap.h"
#include "hw/irq.h"
-#include "target-arm/cpu-qom.h"
+#include "target/arm/cpu-qom.h"
# define OMAP_EMIFS_BASE 0x00000000
# define OMAP2_Q0_BASE 0x00000000
@@ -11,7 +11,7 @@
#define PXA_H
#include "exec/memory.h"
-#include "target-arm/cpu-qom.h"
+#include "target/arm/cpu-qom.h"
/* Interrupt numbers */
# define PXA2XX_PIC_SSP3 0
@@ -2,7 +2,7 @@
#define HW_MCF_H
/* Motorola ColdFire device prototypes. */
-#include "target-m68k/cpu-qom.h"
+#include "target/m68k/cpu-qom.h"
struct MemoryRegion;
@@ -1,7 +1,7 @@
#ifndef HW_MIPS_CPUDEVS_H
#define HW_MIPS_CPUDEVS_H
-#include "target-mips/cpu-qom.h"
+#include "target/mips/cpu-qom.h"
/* Definitions for MIPS CPU internal devices. */
@@ -11,7 +11,7 @@
#define PPC_FDT_H
#include "qemu/error-report.h"
-#include "target-ppc/cpu-qom.h"
+#include "target/ppc/cpu-qom.h"
#define _FDT(exp) \
do { \
@@ -1,7 +1,7 @@
#ifndef HW_PPC_H
#define HW_PPC_H
-#include "target-ppc/cpu-qom.h"
+#include "target/ppc/cpu-qom.h"
void ppc_set_irq(PowerPCCPU *cpu, int n_IRQ, int level);
@@ -11,7 +11,7 @@
#include "hw/qdev.h"
#include "hw/cpu/core.h"
-#include "target-ppc/cpu-qom.h"
+#include "target/ppc/cpu-qom.h"
#define TYPE_SPAPR_CPU_CORE "spapr-cpu-core"
#define SPAPR_CPU_CORE(obj) \
@@ -3,7 +3,7 @@
/* Definitions for SH board emulation. */
#include "hw/sh4/sh_intc.h"
-#include "target-sh4/cpu-qom.h"
+#include "target/sh4/cpu-qom.h"
#define A7ADDR(x) ((x) & 0x1fffffff)
#define P4ADDR(x) ((x) | 0xe0000000)
@@ -48,7 +48,7 @@ grep_include() {
echo Found $(find . -name "*.d" | wc -l) object files
echo $(grep_include -F 'include/qemu-common.h') files include qemu-common.h
echo $(grep_include -F 'hw/hw.h') files include hw/hw.h
-echo $(grep_include 'target-[a-z0-9]*/cpu\.h') files include cpu.h
+echo $(grep_include 'target/[a-z0-9]*/cpu\.h') files include cpu.h
echo $(grep_include -F 'qapi-types.h') files include qapi-types.h
echo $(grep_include -F 'trace/generated-tracers.h') files include generated-tracers.h
echo $(grep_include -F 'qapi/error.h') files include qapi/error.h
@@ -95,8 +95,8 @@ analyze -include ../include/qemu/osdep.h ../include/hw/hw.h
echo trace/generated-tracers.h:
analyze -include ../include/qemu/osdep.h trace/generated-tracers.h
-echo target-i386/cpu.h:
-analyze -DNEED_CPU_H -I../target-i386 -Ii386-softmmu -include ../include/qemu/osdep.h ../target-i386/cpu.h
+echo target/i386/cpu.h:
+analyze -DNEED_CPU_H -I../target/i386 -Ii386-softmmu -include ../include/qemu/osdep.h ../target/i386/cpu.h
echo hw/hw.h + NEED_CPU_H:
-analyze -DNEED_CPU_H -I../target-i386 -Ii386-softmmu -include ../include/qemu/osdep.h ../include/hw/hw.h
+analyze -DNEED_CPU_H -I../target/i386 -Ii386-softmmu -include ../include/qemu/osdep.h ../include/hw/hw.h
similarity index 100%
rename from target-alpha/Makefile.objs
rename to target/alpha/Makefile.objs
similarity index 100%
rename from target-alpha/STATUS
rename to target/alpha/STATUS
similarity index 100%
rename from target-alpha/cpu-qom.h
rename to target/alpha/cpu-qom.h
similarity index 100%
rename from target-alpha/cpu.c
rename to target/alpha/cpu.c
similarity index 100%
rename from target-alpha/cpu.h
rename to target/alpha/cpu.h
similarity index 100%
rename from target-alpha/fpu_helper.c
rename to target/alpha/fpu_helper.c
similarity index 100%
rename from target-alpha/gdbstub.c
rename to target/alpha/gdbstub.c
similarity index 100%
rename from target-alpha/helper.c
rename to target/alpha/helper.c
similarity index 100%
rename from target-alpha/helper.h
rename to target/alpha/helper.h
similarity index 100%
rename from target-alpha/int_helper.c
rename to target/alpha/int_helper.c
similarity index 100%
rename from target-alpha/machine.c
rename to target/alpha/machine.c
similarity index 100%
rename from target-alpha/mem_helper.c
rename to target/alpha/mem_helper.c
similarity index 100%
rename from target-alpha/sys_helper.c
rename to target/alpha/sys_helper.c
similarity index 100%
rename from target-alpha/translate.c
rename to target/alpha/translate.c
similarity index 100%
rename from target-alpha/vax_helper.c
rename to target/alpha/vax_helper.c
similarity index 100%
rename from target-arm/Makefile.objs
rename to target/arm/Makefile.objs
similarity index 100%
rename from target-arm/arch_dump.c
rename to target/arm/arch_dump.c
similarity index 100%
rename from target-arm/arm-powerctl.c
rename to target/arm/arm-powerctl.c
similarity index 100%
rename from target-arm/arm-powerctl.h
rename to target/arm/arm-powerctl.h
similarity index 100%
rename from target-arm/arm-semi.c
rename to target/arm/arm-semi.c
similarity index 100%
rename from target-arm/arm_ldst.h
rename to target/arm/arm_ldst.h
similarity index 100%
rename from target-arm/cpu-qom.h
rename to target/arm/cpu-qom.h
similarity index 100%
rename from target-arm/cpu.c
rename to target/arm/cpu.c
similarity index 100%
rename from target-arm/cpu.h
rename to target/arm/cpu.h
similarity index 100%
rename from target-arm/cpu64.c
rename to target/arm/cpu64.c
similarity index 100%
rename from target-arm/crypto_helper.c
rename to target/arm/crypto_helper.c
similarity index 100%
rename from target-arm/gdbstub.c
rename to target/arm/gdbstub.c
similarity index 100%
rename from target-arm/gdbstub64.c
rename to target/arm/gdbstub64.c
similarity index 100%
rename from target-arm/helper-a64.c
rename to target/arm/helper-a64.c
similarity index 100%
rename from target-arm/helper-a64.h
rename to target/arm/helper-a64.h
similarity index 100%
rename from target-arm/helper.c
rename to target/arm/helper.c
similarity index 100%
rename from target-arm/helper.h
rename to target/arm/helper.h
similarity index 99%
rename from target-arm/internals.h
rename to target/arm/internals.h
@@ -18,7 +18,7 @@
* <http://www.gnu.org/licenses/gpl-2.0.html>
*
* This header defines functions, types, etc which need to be shared
- * between different source files within target-arm/ but which are
+ * between different source files within target/arm/ but which are
* private to it and not required by the rest of QEMU.
*/
similarity index 100%
rename from target-arm/iwmmxt_helper.c
rename to target/arm/iwmmxt_helper.c
similarity index 100%
rename from target-arm/kvm-consts.h
rename to target/arm/kvm-consts.h
similarity index 100%
rename from target-arm/kvm-stub.c
rename to target/arm/kvm-stub.c
similarity index 100%
rename from target-arm/kvm.c
rename to target/arm/kvm.c
similarity index 100%
rename from target-arm/kvm32.c
rename to target/arm/kvm32.c
similarity index 100%
rename from target-arm/kvm64.c
rename to target/arm/kvm64.c
similarity index 100%
rename from target-arm/kvm_arm.h
rename to target/arm/kvm_arm.h
similarity index 100%
rename from target-arm/machine.c
rename to target/arm/machine.c
similarity index 100%
rename from target-arm/monitor.c
rename to target/arm/monitor.c
similarity index 100%
rename from target-arm/neon_helper.c
rename to target/arm/neon_helper.c
similarity index 100%
rename from target-arm/op_addsub.h
rename to target/arm/op_addsub.h
similarity index 100%
rename from target-arm/op_helper.c
rename to target/arm/op_helper.c
similarity index 100%
rename from target-arm/psci.c
rename to target/arm/psci.c
similarity index 96%
rename from target-arm/trace-events
rename to target/arm/trace-events
@@ -1,6 +1,6 @@
# See docs/tracing.txt for syntax documentation.
-# target-arm/helper.c
+# target/arm/helper.c
arm_gt_recalc(int timer, int irqstate, uint64_t nexttick) "gt recalc: timer %d irqstate %d next tick %" PRIx64
arm_gt_recalc_disabled(int timer) "gt recalc: timer %d irqstate 0 timer disabled"
arm_gt_cval_write(int timer, uint64_t value) "gt_cval_write: timer %d value %" PRIx64
similarity index 100%
rename from target-arm/translate-a64.c
rename to target/arm/translate-a64.c
similarity index 100%
rename from target-arm/translate.c
rename to target/arm/translate.c
similarity index 100%
rename from target-arm/translate.h
rename to target/arm/translate.h
similarity index 100%
rename from target-cris/Makefile.objs
rename to target/cris/Makefile.objs
similarity index 100%
rename from target-cris/cpu-qom.h
rename to target/cris/cpu-qom.h
similarity index 100%
rename from target-cris/cpu.c
rename to target/cris/cpu.c
similarity index 100%
rename from target-cris/cpu.h
rename to target/cris/cpu.h
similarity index 100%
rename from target-cris/crisv10-decode.h
rename to target/cris/crisv10-decode.h
similarity index 100%
rename from target-cris/crisv32-decode.h
rename to target/cris/crisv32-decode.h
similarity index 100%
rename from target-cris/gdbstub.c
rename to target/cris/gdbstub.c
similarity index 100%
rename from target-cris/helper.c
rename to target/cris/helper.c
similarity index 100%
rename from target-cris/helper.h
rename to target/cris/helper.h
similarity index 100%
rename from target-cris/machine.c
rename to target/cris/machine.c
similarity index 100%
rename from target-cris/mmu.c
rename to target/cris/mmu.c
similarity index 100%
rename from target-cris/mmu.h
rename to target/cris/mmu.h
similarity index 100%
rename from target-cris/op_helper.c
rename to target/cris/op_helper.c
similarity index 100%
rename from target-cris/opcode-cris.h
rename to target/cris/opcode-cris.h
similarity index 100%
rename from target-cris/translate.c
rename to target/cris/translate.c
similarity index 100%
rename from target-cris/translate_v10.c
rename to target/cris/translate_v10.c
similarity index 100%
rename from target-i386/Makefile.objs
rename to target/i386/Makefile.objs
similarity index 100%
rename from target-i386/TODO
rename to target/i386/TODO
similarity index 100%
rename from target-i386/arch_dump.c
rename to target/i386/arch_dump.c
similarity index 100%
rename from target-i386/arch_memory_mapping.c
rename to target/i386/arch_memory_mapping.c
similarity index 100%
rename from target-i386/bpt_helper.c
rename to target/i386/bpt_helper.c
similarity index 100%
rename from target-i386/cc_helper.c
rename to target/i386/cc_helper.c
similarity index 100%
rename from target-i386/cc_helper_template.h
rename to target/i386/cc_helper_template.h
similarity index 100%
rename from target-i386/cpu-qom.h
rename to target/i386/cpu-qom.h
similarity index 100%
rename from target-i386/cpu.c
rename to target/i386/cpu.c
similarity index 100%
rename from target-i386/cpu.h
rename to target/i386/cpu.h
similarity index 100%
rename from target-i386/excp_helper.c
rename to target/i386/excp_helper.c
similarity index 100%
rename from target-i386/fpu_helper.c
rename to target/i386/fpu_helper.c
similarity index 100%
rename from target-i386/gdbstub.c
rename to target/i386/gdbstub.c
similarity index 100%
rename from target-i386/helper.c
rename to target/i386/helper.c
similarity index 100%
rename from target-i386/helper.h
rename to target/i386/helper.h
similarity index 100%
rename from target-i386/hyperv.c
rename to target/i386/hyperv.c
similarity index 100%
rename from target-i386/hyperv.h
rename to target/i386/hyperv.h
similarity index 100%
rename from target-i386/int_helper.c
rename to target/i386/int_helper.c
similarity index 100%
rename from target-i386/kvm-stub.c
rename to target/i386/kvm-stub.c
similarity index 100%
rename from target-i386/kvm.c
rename to target/i386/kvm.c
similarity index 100%
rename from target-i386/kvm_i386.h
rename to target/i386/kvm_i386.h
similarity index 100%
rename from target-i386/machine.c
rename to target/i386/machine.c
similarity index 100%
rename from target-i386/mem_helper.c
rename to target/i386/mem_helper.c
similarity index 100%
rename from target-i386/misc_helper.c
rename to target/i386/misc_helper.c
similarity index 100%
rename from target-i386/monitor.c
rename to target/i386/monitor.c
similarity index 100%
rename from target-i386/mpx_helper.c
rename to target/i386/mpx_helper.c
similarity index 100%
rename from target-i386/ops_sse.h
rename to target/i386/ops_sse.h
similarity index 100%
rename from target-i386/ops_sse_header.h
rename to target/i386/ops_sse_header.h
similarity index 100%
rename from target-i386/seg_helper.c
rename to target/i386/seg_helper.c
similarity index 100%
rename from target-i386/shift_helper_template.h
rename to target/i386/shift_helper_template.h
similarity index 100%
rename from target-i386/smm_helper.c
rename to target/i386/smm_helper.c
similarity index 100%
rename from target-i386/svm.h
rename to target/i386/svm.h
similarity index 100%
rename from target-i386/svm_helper.c
rename to target/i386/svm_helper.c
similarity index 94%
rename from target-i386/trace-events
rename to target/i386/trace-events
@@ -1,6 +1,6 @@
# See docs/tracing.txt for syntax documentation.
-# target-i386/kvm.c
+# target/i386/kvm.c
kvm_x86_fixup_msi_error(uint32_t gsi) "VT-d failed to remap interrupt for GSI %" PRIu32
kvm_x86_add_msi_route(int virq) "Adding route entry for virq %d"
kvm_x86_remove_msi_route(int virq) "Removing route entry for virq %d"
similarity index 100%
rename from target-i386/translate.c
rename to target/i386/translate.c
similarity index 100%
rename from target-lm32/Makefile.objs
rename to target/lm32/Makefile.objs
similarity index 100%
rename from target-lm32/README
rename to target/lm32/README
similarity index 100%
rename from target-lm32/TODO
rename to target/lm32/TODO
similarity index 100%
rename from target-lm32/cpu-qom.h
rename to target/lm32/cpu-qom.h
similarity index 100%
rename from target-lm32/cpu.c
rename to target/lm32/cpu.c
similarity index 100%
rename from target-lm32/cpu.h
rename to target/lm32/cpu.h
similarity index 100%
rename from target-lm32/gdbstub.c
rename to target/lm32/gdbstub.c
similarity index 100%
rename from target-lm32/helper.c
rename to target/lm32/helper.c
similarity index 100%
rename from target-lm32/helper.h
rename to target/lm32/helper.h
similarity index 99%
rename from target-lm32/lm32-semi.c
rename to target/lm32/lm32-semi.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2014 Michael Walle <michael@walle.cc>
*
- * Based on target-m68k/m68k-semi.c, which is
+ * Based on target/m68k/m68k-semi.c, which is
* Copyright (c) 2005-2007 CodeSourcery.
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
similarity index 100%
rename from target-lm32/machine.c
rename to target/lm32/machine.c
similarity index 100%
rename from target-lm32/op_helper.c
rename to target/lm32/op_helper.c
similarity index 100%
rename from target-lm32/translate.c
rename to target/lm32/translate.c
similarity index 100%
rename from target-m68k/Makefile.objs
rename to target/m68k/Makefile.objs
similarity index 100%
rename from target-m68k/cpu-qom.h
rename to target/m68k/cpu-qom.h
similarity index 100%
rename from target-m68k/cpu.c
rename to target/m68k/cpu.c
similarity index 100%
rename from target-m68k/cpu.h
rename to target/m68k/cpu.h
similarity index 100%
rename from target-m68k/gdbstub.c
rename to target/m68k/gdbstub.c
similarity index 100%
rename from target-m68k/helper.c
rename to target/m68k/helper.c
similarity index 100%
rename from target-m68k/helper.h
rename to target/m68k/helper.h
similarity index 100%
rename from target-m68k/m68k-semi.c
rename to target/m68k/m68k-semi.c
similarity index 100%
rename from target-m68k/op_helper.c
rename to target/m68k/op_helper.c
similarity index 100%
rename from target-m68k/qregs.def
rename to target/m68k/qregs.def
similarity index 100%
rename from target-m68k/translate.c
rename to target/m68k/translate.c
similarity index 100%
rename from target-microblaze/Makefile.objs
rename to target/microblaze/Makefile.objs
similarity index 100%
rename from target-microblaze/cpu-qom.h
rename to target/microblaze/cpu-qom.h
similarity index 100%
rename from target-microblaze/cpu.c
rename to target/microblaze/cpu.c
similarity index 100%
rename from target-microblaze/cpu.h
rename to target/microblaze/cpu.h
similarity index 100%
rename from target-microblaze/gdbstub.c
rename to target/microblaze/gdbstub.c
similarity index 100%
rename from target-microblaze/helper.c
rename to target/microblaze/helper.c
similarity index 100%
rename from target-microblaze/helper.h
rename to target/microblaze/helper.h
similarity index 100%
rename from target-microblaze/microblaze-decode.h
rename to target/microblaze/microblaze-decode.h
similarity index 100%
rename from target-microblaze/mmu.c
rename to target/microblaze/mmu.c
similarity index 100%
rename from target-microblaze/mmu.h
rename to target/microblaze/mmu.h
similarity index 100%
rename from target-microblaze/op_helper.c
rename to target/microblaze/op_helper.c
similarity index 100%
rename from target-microblaze/translate.c
rename to target/microblaze/translate.c
similarity index 100%
rename from target-mips/Makefile.objs
rename to target/mips/Makefile.objs
similarity index 100%
rename from target-mips/TODO
rename to target/mips/TODO
similarity index 100%
rename from target-mips/cpu-qom.h
rename to target/mips/cpu-qom.h
similarity index 100%
rename from target-mips/cpu.c
rename to target/mips/cpu.c
similarity index 100%
rename from target-mips/cpu.h
rename to target/mips/cpu.h
similarity index 100%
rename from target-mips/dsp_helper.c
rename to target/mips/dsp_helper.c
similarity index 100%
rename from target-mips/gdbstub.c
rename to target/mips/gdbstub.c
similarity index 100%
rename from target-mips/helper.c
rename to target/mips/helper.c
similarity index 100%
rename from target-mips/helper.h
rename to target/mips/helper.h
similarity index 100%
rename from target-mips/kvm.c
rename to target/mips/kvm.c
similarity index 100%
rename from target-mips/kvm_mips.h
rename to target/mips/kvm_mips.h
similarity index 100%
rename from target-mips/lmi_helper.c
rename to target/mips/lmi_helper.c
similarity index 100%
rename from target-mips/machine.c
rename to target/mips/machine.c
similarity index 100%
rename from target-mips/mips-defs.h
rename to target/mips/mips-defs.h
similarity index 100%
rename from target-mips/mips-semi.c
rename to target/mips/mips-semi.c
similarity index 100%
rename from target-mips/msa_helper.c
rename to target/mips/msa_helper.c
similarity index 100%
rename from target-mips/op_helper.c
rename to target/mips/op_helper.c
similarity index 100%
rename from target-mips/translate.c
rename to target/mips/translate.c
similarity index 100%
rename from target-mips/translate_init.c
rename to target/mips/translate_init.c
similarity index 100%
rename from target-moxie/Makefile.objs
rename to target/moxie/Makefile.objs
similarity index 100%
rename from target-moxie/cpu.c
rename to target/moxie/cpu.c
similarity index 100%
rename from target-moxie/cpu.h
rename to target/moxie/cpu.h
similarity index 100%
rename from target-moxie/helper.c
rename to target/moxie/helper.c
similarity index 100%
rename from target-moxie/helper.h
rename to target/moxie/helper.h
similarity index 100%
rename from target-moxie/machine.c
rename to target/moxie/machine.c
similarity index 100%
rename from target-moxie/machine.h
rename to target/moxie/machine.h
similarity index 100%
rename from target-moxie/mmu.c
rename to target/moxie/mmu.c
similarity index 100%
rename from target-moxie/mmu.h
rename to target/moxie/mmu.h
similarity index 100%
rename from target-moxie/translate.c
rename to target/moxie/translate.c
similarity index 100%
rename from target-openrisc/Makefile.objs
rename to target/openrisc/Makefile.objs
similarity index 100%
rename from target-openrisc/cpu.c
rename to target/openrisc/cpu.c
similarity index 100%
rename from target-openrisc/cpu.h
rename to target/openrisc/cpu.h
similarity index 100%
rename from target-openrisc/exception.c
rename to target/openrisc/exception.c
similarity index 100%
rename from target-openrisc/exception.h
rename to target/openrisc/exception.h
similarity index 100%
rename from target-openrisc/exception_helper.c
rename to target/openrisc/exception_helper.c
similarity index 100%
rename from target-openrisc/fpu_helper.c
rename to target/openrisc/fpu_helper.c
similarity index 100%
rename from target-openrisc/gdbstub.c
rename to target/openrisc/gdbstub.c
similarity index 100%
rename from target-openrisc/helper.h
rename to target/openrisc/helper.h
similarity index 100%
rename from target-openrisc/int_helper.c
rename to target/openrisc/int_helper.c
similarity index 100%
rename from target-openrisc/interrupt.c
rename to target/openrisc/interrupt.c
similarity index 100%
rename from target-openrisc/interrupt_helper.c
rename to target/openrisc/interrupt_helper.c
similarity index 100%
rename from target-openrisc/machine.c
rename to target/openrisc/machine.c
similarity index 100%
rename from target-openrisc/mmu.c
rename to target/openrisc/mmu.c
similarity index 100%
rename from target-openrisc/mmu_helper.c
rename to target/openrisc/mmu_helper.c
similarity index 100%
rename from target-openrisc/sys_helper.c
rename to target/openrisc/sys_helper.c
similarity index 100%
rename from target-openrisc/translate.c
rename to target/openrisc/translate.c
similarity index 100%
rename from target-ppc/Makefile.objs
rename to target/ppc/Makefile.objs
similarity index 100%
rename from target-ppc/STATUS
rename to target/ppc/STATUS
similarity index 100%
rename from target-ppc/arch_dump.c
rename to target/ppc/arch_dump.c
similarity index 100%
rename from target-ppc/cpu-models.c
rename to target/ppc/cpu-models.c
similarity index 100%
rename from target-ppc/cpu-models.h
rename to target/ppc/cpu-models.h
similarity index 100%
rename from target-ppc/cpu-qom.h
rename to target/ppc/cpu-qom.h
similarity index 100%
rename from target-ppc/cpu.h
rename to target/ppc/cpu.h
similarity index 100%
rename from target-ppc/dfp_helper.c
rename to target/ppc/dfp_helper.c
similarity index 100%
rename from target-ppc/excp_helper.c
rename to target/ppc/excp_helper.c
similarity index 100%
rename from target-ppc/fpu_helper.c
rename to target/ppc/fpu_helper.c
similarity index 100%
rename from target-ppc/gdbstub.c
rename to target/ppc/gdbstub.c
similarity index 100%
rename from target-ppc/helper.h
rename to target/ppc/helper.h
similarity index 100%
rename from target-ppc/helper_regs.h
rename to target/ppc/helper_regs.h
similarity index 100%
rename from target-ppc/int_helper.c
rename to target/ppc/int_helper.c
similarity index 100%
rename from target-ppc/internal.h
rename to target/ppc/internal.h
similarity index 100%
rename from target-ppc/kvm-stub.c
rename to target/ppc/kvm-stub.c
similarity index 100%
rename from target-ppc/kvm.c
rename to target/ppc/kvm.c
similarity index 100%
rename from target-ppc/kvm_ppc.h
rename to target/ppc/kvm_ppc.h
similarity index 100%
rename from target-ppc/machine.c
rename to target/ppc/machine.c
similarity index 100%
rename from target-ppc/mem_helper.c
rename to target/ppc/mem_helper.c
similarity index 100%
rename from target-ppc/mfrom_table.c
rename to target/ppc/mfrom_table.c
similarity index 100%
rename from target-ppc/mfrom_table_gen.c
rename to target/ppc/mfrom_table_gen.c
similarity index 100%
rename from target-ppc/misc_helper.c
rename to target/ppc/misc_helper.c
similarity index 100%
rename from target-ppc/mmu-hash32.c
rename to target/ppc/mmu-hash32.c
similarity index 100%
rename from target-ppc/mmu-hash32.h
rename to target/ppc/mmu-hash32.h
similarity index 100%
rename from target-ppc/mmu-hash64.c
rename to target/ppc/mmu-hash64.c
similarity index 100%
rename from target-ppc/mmu-hash64.h
rename to target/ppc/mmu-hash64.h
similarity index 100%
rename from target-ppc/mmu_helper.c
rename to target/ppc/mmu_helper.c
similarity index 100%
rename from target-ppc/monitor.c
rename to target/ppc/monitor.c
similarity index 100%
rename from target-ppc/timebase_helper.c
rename to target/ppc/timebase_helper.c
similarity index 92%
rename from target-ppc/trace-events
rename to target/ppc/trace-events
@@ -1,5 +1,5 @@
# See docs/tracing.txt for syntax documentation.
-# target-ppc/kvm.c
+# target/ppc/kvm.c
kvm_failed_spr_set(int str, const char *msg) "Warning: Unable to set SPR %d to KVM: %s"
kvm_failed_spr_get(int str, const char *msg) "Warning: Unable to retrieve SPR %d from KVM: %s"
similarity index 100%
rename from target-ppc/translate.c
rename to target/ppc/translate.c
similarity index 100%
rename from target-ppc/translate/dfp-impl.inc.c
rename to target/ppc/translate/dfp-impl.inc.c
similarity index 100%
rename from target-ppc/translate/dfp-ops.inc.c
rename to target/ppc/translate/dfp-ops.inc.c
similarity index 100%
rename from target-ppc/translate/fp-impl.inc.c
rename to target/ppc/translate/fp-impl.inc.c
similarity index 100%
rename from target-ppc/translate/fp-ops.inc.c
rename to target/ppc/translate/fp-ops.inc.c
similarity index 100%
rename from target-ppc/translate/spe-impl.inc.c
rename to target/ppc/translate/spe-impl.inc.c
similarity index 100%
rename from target-ppc/translate/spe-ops.inc.c
rename to target/ppc/translate/spe-ops.inc.c
similarity index 100%
rename from target-ppc/translate/vmx-impl.inc.c
rename to target/ppc/translate/vmx-impl.inc.c
similarity index 100%
rename from target-ppc/translate/vmx-ops.inc.c
rename to target/ppc/translate/vmx-ops.inc.c
similarity index 100%
rename from target-ppc/translate/vsx-impl.inc.c
rename to target/ppc/translate/vsx-impl.inc.c
similarity index 100%
rename from target-ppc/translate/vsx-ops.inc.c
rename to target/ppc/translate/vsx-ops.inc.c
similarity index 100%
rename from target-ppc/translate_init.c
rename to target/ppc/translate_init.c
similarity index 100%
rename from target-ppc/user_only_helper.c
rename to target/ppc/user_only_helper.c
similarity index 94%
rename from target-s390x/Makefile.objs
rename to target/s390x/Makefile.objs
@@ -5,7 +5,7 @@ obj-$(CONFIG_SOFTMMU) += machine.o ioinst.o arch_dump.o mmu_helper.o
obj-$(CONFIG_KVM) += kvm.o
# build and run feature list generator
-feat-src = $(SRC_PATH)/target-$(TARGET_BASE_ARCH)/
+feat-src = $(SRC_PATH)/target/$(TARGET_BASE_ARCH)/
feat-dst = $(BUILD_DIR)/$(TARGET_DIR)
ifneq ($(MAKECMDGOALS),clean)
GENERATED_HEADERS += $(feat-dst)gen-features.h
similarity index 100%
rename from target-s390x/arch_dump.c
rename to target/s390x/arch_dump.c
similarity index 100%
rename from target-s390x/cc_helper.c
rename to target/s390x/cc_helper.c
similarity index 100%
rename from target-s390x/cpu-qom.h
rename to target/s390x/cpu-qom.h
similarity index 100%
rename from target-s390x/cpu.c
rename to target/s390x/cpu.c
similarity index 100%
rename from target-s390x/cpu.h
rename to target/s390x/cpu.h
similarity index 100%
rename from target-s390x/cpu_features.c
rename to target/s390x/cpu_features.c
similarity index 100%
rename from target-s390x/cpu_features.h
rename to target/s390x/cpu_features.h
similarity index 100%
rename from target-s390x/cpu_features_def.h
rename to target/s390x/cpu_features_def.h
similarity index 100%
rename from target-s390x/cpu_models.c
rename to target/s390x/cpu_models.c
similarity index 100%
rename from target-s390x/cpu_models.h
rename to target/s390x/cpu_models.h
similarity index 100%
rename from target-s390x/fpu_helper.c
rename to target/s390x/fpu_helper.c
similarity index 100%
rename from target-s390x/gdbstub.c
rename to target/s390x/gdbstub.c
similarity index 100%
rename from target-s390x/gen-features.c
rename to target/s390x/gen-features.c
similarity index 100%
rename from target-s390x/helper.c
rename to target/s390x/helper.c
similarity index 100%
rename from target-s390x/helper.h
rename to target/s390x/helper.h
similarity index 100%
rename from target-s390x/insn-data.def
rename to target/s390x/insn-data.def
similarity index 100%
rename from target-s390x/insn-format.def
rename to target/s390x/insn-format.def
similarity index 100%
rename from target-s390x/int_helper.c
rename to target/s390x/int_helper.c
similarity index 100%
rename from target-s390x/interrupt.c
rename to target/s390x/interrupt.c
similarity index 100%
rename from target-s390x/ioinst.c
rename to target/s390x/ioinst.c
similarity index 100%
rename from target-s390x/kvm.c
rename to target/s390x/kvm.c
similarity index 100%
rename from target-s390x/machine.c
rename to target/s390x/machine.c
similarity index 100%
rename from target-s390x/mem_helper.c
rename to target/s390x/mem_helper.c
similarity index 100%
rename from target-s390x/misc_helper.c
rename to target/s390x/misc_helper.c
similarity index 100%
rename from target-s390x/mmu_helper.c
rename to target/s390x/mmu_helper.c
similarity index 91%
rename from target-s390x/trace-events
rename to target/s390x/trace-events
@@ -1,22 +1,22 @@
# See docs/tracing.txt for syntax documentation.
-# target-s390x/mmu_helper.c
+# target/s390x/mmu_helper.c
get_skeys_nonzero(int rc) "SKEY: Call to get_skeys unexpectedly returned %d"
set_skeys_nonzero(int rc) "SKEY: Call to set_skeys unexpectedly returned %d"
-# target-s390x/ioinst.c
+# target/s390x/ioinst.c
ioinst(const char *insn) "IOINST: %s"
ioinst_sch_id(const char *insn, int cssid, int ssid, int schid) "IOINST: %s (%x.%x.%04x)"
ioinst_chp_id(const char *insn, int cssid, int chpid) "IOINST: %s (%x.%02x)"
ioinst_chsc_cmd(uint16_t cmd, uint16_t len) "IOINST: chsc command %04x, len %04x"
-# target-s390x/kvm.c
+# target/s390x/kvm.c
kvm_enable_cmma(int rc) "CMMA: enabling with result code %d"
kvm_clear_cmma(int rc) "CMMA: clearing with result code %d"
kvm_failed_cpu_state_set(int cpu_index, uint8_t state, const char *msg) "Warning: Unable to set cpu %d state %" PRIu8 " to KVM: %s"
kvm_sigp_finished(uint8_t order, int cpu_index, int dst_index, int cc) "SIGP: Finished order %u on cpu %d -> cpu %d with cc=%d"
-# target-s390x/cpu.c
+# target/s390x/cpu.c
cpu_set_state(int cpu_index, uint8_t state) "setting cpu %d state to %" PRIu8
cpu_halt(int cpu_index) "halting cpu %d"
cpu_unhalt(int cpu_index) "unhalting cpu %d"
similarity index 100%
rename from target-s390x/translate.c
rename to target/s390x/translate.c
similarity index 100%
rename from target-sh4/Makefile.objs
rename to target/sh4/Makefile.objs
similarity index 98%
rename from target-sh4/README.sh4
rename to target/sh4/README.sh4
@@ -8,7 +8,7 @@ file describes the current state of implementation.
Most places requiring attention and/or modification can be detected by
looking for "XXXXX" or "abort()".
-The sh4 core is located in target-sh4/*, while the 7750 peripheral
+The sh4 core is located in target/sh4/*, while the 7750 peripheral
features (IO ports for example) are located in hw/sh7750.[ch]. The
main board description is in hw/shix.c, and the NAND flash in
hw/tc58128.[ch].
similarity index 100%
rename from target-sh4/cpu-qom.h
rename to target/sh4/cpu-qom.h
similarity index 100%
rename from target-sh4/cpu.c
rename to target/sh4/cpu.c
similarity index 100%
rename from target-sh4/cpu.h
rename to target/sh4/cpu.h
similarity index 100%
rename from target-sh4/gdbstub.c
rename to target/sh4/gdbstub.c
similarity index 100%
rename from target-sh4/helper.c
rename to target/sh4/helper.c
similarity index 100%
rename from target-sh4/helper.h
rename to target/sh4/helper.h
similarity index 100%
rename from target-sh4/monitor.c
rename to target/sh4/monitor.c
similarity index 100%
rename from target-sh4/op_helper.c
rename to target/sh4/op_helper.c
similarity index 100%
rename from target-sh4/translate.c
rename to target/sh4/translate.c
similarity index 100%
rename from target-sparc/Makefile.objs
rename to target/sparc/Makefile.objs
similarity index 100%
rename from target-sparc/TODO
rename to target/sparc/TODO
similarity index 100%
rename from target-sparc/asi.h
rename to target/sparc/asi.h
similarity index 100%
rename from target-sparc/cc_helper.c
rename to target/sparc/cc_helper.c
similarity index 100%
rename from target-sparc/cpu-qom.h
rename to target/sparc/cpu-qom.h
similarity index 100%
rename from target-sparc/cpu.c
rename to target/sparc/cpu.c
similarity index 100%
rename from target-sparc/cpu.h
rename to target/sparc/cpu.h
similarity index 100%
rename from target-sparc/fop_helper.c
rename to target/sparc/fop_helper.c
similarity index 100%
rename from target-sparc/gdbstub.c
rename to target/sparc/gdbstub.c
similarity index 100%
rename from target-sparc/helper.c
rename to target/sparc/helper.c
similarity index 100%
rename from target-sparc/helper.h
rename to target/sparc/helper.h
similarity index 100%
rename from target-sparc/int32_helper.c
rename to target/sparc/int32_helper.c
similarity index 100%
rename from target-sparc/int64_helper.c
rename to target/sparc/int64_helper.c
similarity index 100%
rename from target-sparc/ldst_helper.c
rename to target/sparc/ldst_helper.c
similarity index 100%
rename from target-sparc/machine.c
rename to target/sparc/machine.c
similarity index 100%
rename from target-sparc/mmu_helper.c
rename to target/sparc/mmu_helper.c
similarity index 100%
rename from target-sparc/monitor.c
rename to target/sparc/monitor.c
similarity index 94%
rename from target-sparc/trace-events
rename to target/sparc/trace-events
@@ -1,6 +1,6 @@
# See docs/tracing.txt for syntax documentation.
-# target-sparc/mmu_helper.c
+# target/sparc/mmu_helper.c
mmu_helper_dfault(uint64_t address, uint64_t context, int mmu_idx, uint32_t tl) "DFAULT at %"PRIx64" context %"PRIx64" mmu_idx=%d tl=%d"
mmu_helper_dprot(uint64_t address, uint64_t context, int mmu_idx, uint32_t tl) "DPROT at %"PRIx64" context %"PRIx64" mmu_idx=%d tl=%d"
mmu_helper_dmiss(uint64_t address, uint64_t context) "DMISS at %"PRIx64" context %"PRIx64
@@ -10,16 +10,16 @@ mmu_helper_get_phys_addr_code(uint32_t tl, int mmu_idx, uint64_t prim_context, u
mmu_helper_get_phys_addr_data(uint32_t tl, int mmu_idx, uint64_t prim_context, uint64_t sec_context, uint64_t address) "tl=%d mmu_idx=%d primary context=%"PRIx64" secondary context=%"PRIx64" address=%"PRIx64
mmu_helper_mmu_fault(uint64_t address, uint64_t paddr, int mmu_idx, uint32_t tl, uint64_t prim_context, uint64_t sec_context) "Translate at %"PRIx64" -> %"PRIx64", mmu_idx=%d tl=%d primary context=%"PRIx64" secondary context=%"PRIx64
-# target-sparc/int64_helper.c
+# target/sparc/int64_helper.c
int_helper_set_softint(uint32_t softint) "new %08x"
int_helper_clear_softint(uint32_t softint) "new %08x"
int_helper_write_softint(uint32_t softint) "new %08x"
-# target-sparc/int32_helper.c
+# target/sparc/int32_helper.c
int_helper_icache_freeze(void) "Instruction cache: freeze"
int_helper_dcache_freeze(void) "Data cache: freeze"
-# target-sparc/win_helper.c
+# target/sparc/win_helper.c
win_helper_gregset_error(uint32_t pstate) "ERROR in get_gregset: active pstate bits=%x"
win_helper_switch_pstate(uint32_t pstate_regs, uint32_t new_pstate_regs) "change_pstate: switching regs old=%x new=%x"
win_helper_no_switch_pstate(uint32_t new_pstate_regs) "change_pstate: regs new=%x (unchanged)"
similarity index 100%
rename from target-sparc/translate.c
rename to target/sparc/translate.c
similarity index 100%
rename from target-sparc/vis_helper.c
rename to target/sparc/vis_helper.c
similarity index 100%
rename from target-sparc/win_helper.c
rename to target/sparc/win_helper.c
similarity index 100%
rename from target-tilegx/Makefile.objs
rename to target/tilegx/Makefile.objs
similarity index 100%
rename from target-tilegx/cpu.c
rename to target/tilegx/cpu.c
similarity index 100%
rename from target-tilegx/cpu.h
rename to target/tilegx/cpu.h
similarity index 100%
rename from target-tilegx/helper.c
rename to target/tilegx/helper.c
similarity index 100%
rename from target-tilegx/helper.h
rename to target/tilegx/helper.h
similarity index 100%
rename from target-tilegx/opcode_tilegx.h
rename to target/tilegx/opcode_tilegx.h
similarity index 100%
rename from target-tilegx/simd_helper.c
rename to target/tilegx/simd_helper.c
similarity index 100%
rename from target-tilegx/spr_def_64.h
rename to target/tilegx/spr_def_64.h
similarity index 100%
rename from target-tilegx/translate.c
rename to target/tilegx/translate.c
similarity index 100%
rename from target-tricore/Makefile.objs
rename to target/tricore/Makefile.objs
similarity index 100%
rename from target-tricore/cpu-qom.h
rename to target/tricore/cpu-qom.h
similarity index 100%
rename from target-tricore/cpu.c
rename to target/tricore/cpu.c
similarity index 100%
rename from target-tricore/cpu.h
rename to target/tricore/cpu.h
similarity index 100%
rename from target-tricore/csfr.def
rename to target/tricore/csfr.def
similarity index 100%
rename from target-tricore/fpu_helper.c
rename to target/tricore/fpu_helper.c
similarity index 100%
rename from target-tricore/helper.c
rename to target/tricore/helper.c
similarity index 100%
rename from target-tricore/helper.h
rename to target/tricore/helper.h
similarity index 100%
rename from target-tricore/op_helper.c
rename to target/tricore/op_helper.c
similarity index 100%
rename from target-tricore/translate.c
rename to target/tricore/translate.c
similarity index 100%
rename from target-tricore/tricore-defs.h
rename to target/tricore/tricore-defs.h
similarity index 100%
rename from target-tricore/tricore-opcodes.h
rename to target/tricore/tricore-opcodes.h
similarity index 100%
rename from target-unicore32/Makefile.objs
rename to target/unicore32/Makefile.objs
similarity index 100%
rename from target-unicore32/cpu-qom.h
rename to target/unicore32/cpu-qom.h
similarity index 100%
rename from target-unicore32/cpu.c
rename to target/unicore32/cpu.c
similarity index 100%
rename from target-unicore32/cpu.h
rename to target/unicore32/cpu.h
similarity index 100%
rename from target-unicore32/helper.c
rename to target/unicore32/helper.c
similarity index 100%
rename from target-unicore32/helper.h
rename to target/unicore32/helper.h
similarity index 100%
rename from target-unicore32/op_helper.c
rename to target/unicore32/op_helper.c
similarity index 100%
rename from target-unicore32/softmmu.c
rename to target/unicore32/softmmu.c
similarity index 100%
rename from target-unicore32/translate.c
rename to target/unicore32/translate.c
similarity index 100%
rename from target-unicore32/ucf64_helper.c
rename to target/unicore32/ucf64_helper.c
similarity index 100%
rename from target-xtensa/Makefile.objs
rename to target/xtensa/Makefile.objs
similarity index 100%
rename from target-xtensa/core-dc232b.c
rename to target/xtensa/core-dc232b.c
similarity index 100%
rename from target-xtensa/core-dc232b/core-isa.h
rename to target/xtensa/core-dc232b/core-isa.h
similarity index 100%
rename from target-xtensa/core-dc232b/gdb-config.c
rename to target/xtensa/core-dc232b/gdb-config.c
similarity index 100%
rename from target-xtensa/core-dc233c.c
rename to target/xtensa/core-dc233c.c
similarity index 100%
rename from target-xtensa/core-dc233c/core-isa.h
rename to target/xtensa/core-dc233c/core-isa.h
similarity index 100%
rename from target-xtensa/core-dc233c/gdb-config.c
rename to target/xtensa/core-dc233c/gdb-config.c
similarity index 100%
rename from target-xtensa/core-fsf.c
rename to target/xtensa/core-fsf.c
similarity index 100%
rename from target-xtensa/core-fsf/core-isa.h
rename to target/xtensa/core-fsf/core-isa.h
similarity index 100%
rename from target-xtensa/cpu-qom.h
rename to target/xtensa/cpu-qom.h
similarity index 100%
rename from target-xtensa/cpu.c
rename to target/xtensa/cpu.c
similarity index 100%
rename from target-xtensa/cpu.h
rename to target/xtensa/cpu.h
similarity index 100%
rename from target-xtensa/gdbstub.c
rename to target/xtensa/gdbstub.c
similarity index 100%
rename from target-xtensa/helper.c
rename to target/xtensa/helper.c
similarity index 100%
rename from target-xtensa/helper.h
rename to target/xtensa/helper.h
similarity index 100%
rename from target-xtensa/import_core.sh
rename to target/xtensa/import_core.sh
similarity index 100%
rename from target-xtensa/monitor.c
rename to target/xtensa/monitor.c
similarity index 100%
rename from target-xtensa/op_helper.c
rename to target/xtensa/op_helper.c
similarity index 100%
rename from target-xtensa/overlay_tool.h
rename to target/xtensa/overlay_tool.h
similarity index 100%
rename from target-xtensa/translate.c
rename to target/xtensa/translate.c
similarity index 100%
rename from target-xtensa/xtensa-semi.c
rename to target/xtensa/xtensa-semi.c
@@ -19,7 +19,7 @@ AS = $(CROSS)gcc -x assembler-with-cpp
LD = $(CROSS)ld
XTENSA_SRC_PATH = $(SRC_PATH)/tests/tcg/xtensa
-INCLUDE_DIRS = $(XTENSA_SRC_PATH) $(SRC_PATH)/target-xtensa/core-$(CORE)
+INCLUDE_DIRS = $(XTENSA_SRC_PATH) $(SRC_PATH)/target/xtensa/core-$(CORE)
XTENSA_INC = $(addprefix -I,$(INCLUDE_DIRS))
LDFLAGS = -Tlinker.ld