Skip to content

Commit

Permalink
Move target-* CPU file into a target/ folder
Browse files Browse the repository at this point in the history
We've currently got 18 architectures in QEMU, and thus 18 target-xxx
folders in the root folder of the QEMU source tree. More architectures
(e.g. RISC-V, AVR) are likely to be included soon, too, so the main
folder of the QEMU sources slowly gets quite overcrowded with the
target-xxx folders.
To disburden the main folder a little bit, let's move the target-xxx
folders into a dedicated target/ folder, so that target-xxx/ simply
becomes target/xxx/ instead.

Acked-by: Laurent Vivier <[email protected]> [m68k part]
Acked-by: Bastian Koppelmann <[email protected]> [tricore part]
Acked-by: Michael Walle <[email protected]> [lm32 part]
Acked-by: Cornelia Huck <[email protected]> [s390x part]
Reviewed-by: Christian Borntraeger <[email protected]> [s390x part]
Acked-by: Eduardo Habkost <[email protected]> [i386 part]
Acked-by: Artyom Tarasenko <[email protected]> [sparc part]
Acked-by: Richard Henderson <[email protected]> [alpha part]
Acked-by: Max Filippov <[email protected]> [xtensa part]
Reviewed-by: David Gibson <[email protected]> [ppc part]
Acked-by: Edgar E. Iglesias <[email protected]> [cris&microblaze part]
Acked-by: Guan Xuetao <[email protected]> [unicore32 part]
Signed-off-by: Thomas Huth <[email protected]>
  • Loading branch information
huth committed Dec 20, 2016
1 parent 82ecffa commit fcf5ef2
Show file tree
Hide file tree
Showing 369 changed files with 78 additions and 80 deletions.
48 changes: 24 additions & 24 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ F: include/fpu/
Alpha
M: Richard Henderson <[email protected]>
S: Maintained
F: target-alpha/
F: target/alpha/
F: hw/alpha/
F: tests/tcg/alpha/
F: disas/alpha.c
Expand All @@ -115,7 +115,7 @@ ARM
M: Peter Maydell <[email protected]>
L: [email protected]
S: Maintained
F: target-arm/
F: target/arm/
F: hw/arm/
F: hw/cpu/a*mpcore.c
F: include/hw/cpu/a*mpcore.h
Expand All @@ -126,7 +126,7 @@ F: disas/libvixl/
CRIS
M: Edgar E. Iglesias <[email protected]>
S: Maintained
F: target-cris/
F: target/cris/
F: hw/cris/
F: include/hw/cris/
F: tests/tcg/cris/
Expand All @@ -135,7 +135,7 @@ F: disas/cris.c
LM32
M: Michael Walle <[email protected]>
S: Maintained
F: target-lm32/
F: target/lm32/
F: disas/lm32.c
F: hw/lm32/
F: hw/*/lm32_*
Expand All @@ -147,21 +147,21 @@ F: tests/tcg/lm32/
M68K
M: Laurent Vivier <[email protected]>
S: Maintained
F: target-m68k/
F: target/m68k/
F: disas/m68k.c

MicroBlaze
M: Edgar E. Iglesias <[email protected]>
S: Maintained
F: target-microblaze/
F: target/microblaze/
F: hw/microblaze/
F: disas/microblaze.c

MIPS
M: Aurelien Jarno <[email protected]>
M: Yongbok Kim <[email protected]>
S: Maintained
F: target-mips/
F: target/mips/
F: hw/mips/
F: hw/misc/mips_*
F: hw/intc/mips_gic.c
Expand All @@ -176,15 +176,15 @@ F: disas/mips.c
Moxie
M: Anthony Green <[email protected]>
S: Maintained
F: target-moxie/
F: target/moxie/
F: disas/moxie.c
F: hw/moxie/
F: default-configs/moxie-softmmu.mak

OpenRISC
M: Jia Liu <[email protected]>
S: Maintained
F: target-openrisc/
F: target/openrisc/
F: hw/openrisc/
F: tests/tcg/openrisc/

Expand All @@ -193,7 +193,7 @@ M: David Gibson <[email protected]>
M: Alexander Graf <[email protected]>
L: [email protected]
S: Maintained
F: target-ppc/
F: target/ppc/
F: hw/ppc/
F: include/hw/ppc/
F: disas/ppc.c
Expand All @@ -202,14 +202,14 @@ S390
M: Richard Henderson <[email protected]>
M: Alexander Graf <[email protected]>
S: Maintained
F: target-s390x/
F: target/s390x/
F: hw/s390x/
F: disas/s390.c

SH4
M: Aurelien Jarno <[email protected]>
S: Odd Fixes
F: target-sh4/
F: target/sh4/
F: hw/sh4/
F: disas/sh4.c
F: include/hw/sh4/
Expand All @@ -218,15 +218,15 @@ SPARC
M: Mark Cave-Ayland <[email protected]>
M: Artyom Tarasenko <[email protected]>
S: Maintained
F: target-sparc/
F: target/sparc/
F: hw/sparc/
F: hw/sparc64/
F: disas/sparc.c

UniCore32
M: Guan Xuetao <[email protected]>
S: Maintained
F: target-unicore32/
F: target/unicore32/
F: hw/unicore32/
F: include/hw/unicore32/

Expand All @@ -235,22 +235,22 @@ M: Paolo Bonzini <[email protected]>
M: Richard Henderson <[email protected]>
M: Eduardo Habkost <[email protected]>
S: Maintained
F: target-i386/
F: target/i386/
F: hw/i386/
F: disas/i386.c

Xtensa
M: Max Filippov <[email protected]>
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 <[email protected]>
S: Maintained
F: target-tricore/
F: target/tricore/
F: hw/tricore/
F: include/hw/tricore/

Expand All @@ -269,26 +269,26 @@ ARM
M: Peter Maydell <[email protected]>
L: [email protected]
S: Maintained
F: target-arm/kvm.c
F: target/arm/kvm.c

MIPS
M: James Hogan <[email protected]>
S: Maintained
F: target-mips/kvm.c
F: target/mips/kvm.c

PPC
M: Alexander Graf <[email protected]>
S: Maintained
F: target-ppc/kvm.c
F: target/ppc/kvm.c

S390
M: Christian Borntraeger <[email protected]>
M: Cornelia Huck <[email protected]>
M: Alexander Graf <[email protected]>
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
Expand All @@ -301,7 +301,7 @@ M: Paolo Bonzini <[email protected]>
M: Marcelo Tosatti <[email protected]>
L: [email protected]
S: Supported
F: target-i386/kvm.c
F: target/i386/kvm.c

Guest CPU Cores (Xen):
----------------------
Expand Down
10 changes: 5 additions & 5 deletions Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions Makefile.target
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions disas/cris.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion hw/alpha/alpha_sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion hw/arm/strongarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion hw/arm/virt-acpi-build.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion hw/i386/acpi-build.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion hw/i386/kvm/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion hw/intc/ioapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion hw/misc/hyperv_testdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion hw/ppc/fdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion hw/ppc/pnv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion hw/ppc/pnv_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion hw/ppc/pnv_lpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion hw/ppc/pnv_xscom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions hw/ppc/spapr_cpu_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion hw/sh4/shix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion include/hw/arm/arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion include/hw/arm/exynos4210.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion include/hw/arm/omap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit fcf5ef2

Please sign in to comment.