From patchwork Thu Jul 21 01:27:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [02/23] PPC: Move openpic to target specific code compilation X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 105990 Message-Id: <1311211654-14326-3-git-send-email-agraf@suse.de> To: QEMU-devel Developers Cc: Scott Wood Date: Thu, 21 Jul 2011 03:27:13 +0200 From: Alexander Graf List-Id: The MPIC has some funny feature where it maps different registers to an MMIO region depending which CPU accesses them. To be able to reflect that, we need to make OpenPIC be compiled in the target code, so it can access cpu_single_env. Signed-off-by: Alexander Graf --- Makefile.objs | 1 - Makefile.target | 2 ++ 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index c43ed05..6ab8247 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -207,7 +207,6 @@ hw-obj-$(CONFIG_SMARTCARD) += usb-ccid.o ccid-card-passthru.o hw-obj-$(CONFIG_SMARTCARD_NSS) += ccid-card-emulated.o # PPC devices -hw-obj-$(CONFIG_OPENPIC) += openpic.o hw-obj-$(CONFIG_PREP_PCI) += prep_pci.o # Mac shared devices hw-obj-$(CONFIG_MACIO) += macio.o diff --git a/Makefile.target b/Makefile.target index e20a313..0568d05 100644 --- a/Makefile.target +++ b/Makefile.target @@ -255,6 +255,8 @@ obj-ppc-y += ppce500_mpc8544ds.o mpc8544_guts.o obj-ppc-y += virtex_ml507.o obj-ppc-$(CONFIG_KVM) += kvm_ppc.o obj-ppc-$(CONFIG_FDT) += device_tree.o +# PowerPC OpenPIC +obj-ppc-y += openpic.o # Xilinx PPC peripherals obj-ppc-y += xilinx_intc.o