[6061] target-ppc: move PPC4xx SDRAM controller emulation from ppc405_uc. c to ppc4xx_devs.c
Revision: 6061
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6061 Author: aurel32 Date: 2008-12-15 22:59:34 +0000 (Mon, 15 Dec 2008)
Log Message:
-----------
target-ppc: move PPC4xx SDRAM controller emulation from ppc405_uc.c to ppc4xx_devs.c
The SDRAM controller is shared across almost all 405 and 440 embedded processors, with some slight differences such as the sizes supported for each memory bank.
Code movement only; no functional changes.
Modified Paths:
--------------
trunk/hw/ppc405.h
trunk/hw/ppc405_uc.c
trunk/hw/ppc4xx.h
trunk/hw/ppc4xx_devs.cModified: trunk/hw/ppc405.h
===================================================================
hw/ppc405.h +0 -5
@@ -66,11 +66,6 @@/* OPB arbitrer */ void ppc4xx_opba_init (CPUState *env,ppc4xx_mmio_t *mmio,target_phys_addr_t offset); -/* SDRAM controller */ -void ppc405_sdram_init (CPUState *env,qemu_irq irq,int nbanks, -target_phys_addr_t *ram_bases, -target_phys_addr_t *ram_sizes, -int do_init);/* Peripheral controller */ void ppc405_ebc_init (CPUState *env);/* DMA controller */
Modified: trunk/hw/ppc405_uc.c
===================================================================
hw/ppc405_uc.c +0 -341
347 lines not on this page · raw message
Modified: trunk/hw/ppc4xx.h
===================================================================
hw/ppc4xx.h +5 -0
@@ -48,6 +48,11 @@qemu_irq *ppcuic_init (CPUState *env,qemu_irq *irqs,uint32_t dcr_base,int has_ssr,int has_vr); +void ppc405_sdram_init (CPUState *env,qemu_irq irq,int nbanks, +target_phys_addr_t *ram_bases, +target_phys_addr_t *ram_sizes, +int do_init); + PCIBus *ppc4xx_pci_init(CPUState *env, qemu_irq pci_irqs[4], target_phys_addr_t config_space, target_phys_addr_t int_ack,
Modified: trunk/hw/ppc4xx_devs.c
===================================================================
hw/ppc4xx_devs.c +341 -0
344 lines not on this page · raw message