]> Git Repo - qemu.git/commitdiff
ppc4xx: Export ECB and PLB emulation
authorBALATON Zoltan <[email protected]>
Sun, 20 Aug 2017 17:23:05 +0000 (19:23 +0200)
committerDavid Gibson <[email protected]>
Thu, 7 Sep 2017 23:30:55 +0000 (09:30 +1000)
Make these device models available outside ppc405_uc.c for reuse in
460EX emulation. They are left in their current place for now because
they are used mostly unchanged and I'm not sure these correctly model
the components in 440 SoCs (but they seem to be good enough). These
functions could be moved in a subsequent clean up series when this is
confirmed.

Signed-off-by: BALATON Zoltan <[email protected]>
Signed-off-by: David Gibson <[email protected]>
hw/ppc/ppc405.h
hw/ppc/ppc405_uc.c

index a9ffc87f19f17bad6e64f7718e5e4eb13c807e70..7ed25cfa1bfaa95d22a3551f99ca3b21eeca10d7 100644 (file)
@@ -59,6 +59,9 @@ struct ppc4xx_bd_info_t {
 ram_addr_t ppc405_set_bootinfo (CPUPPCState *env, ppc4xx_bd_info_t *bd,
                                 uint32_t flags);
 
+void ppc4xx_plb_init(CPUPPCState *env);
+void ppc405_ebc_init(CPUPPCState *env);
+
 CPUPPCState *ppc405cr_init(MemoryRegion *address_space_mem,
                         MemoryRegion ram_memories[4],
                         hwaddr ram_bases[4],
index 8f44cb46d0695f2cfa9bf80d38fd3cc9d70bad68..e621d0aec502a4d2feebe8d64750d7b92a09c695 100644 (file)
@@ -174,7 +174,7 @@ static void ppc4xx_plb_reset (void *opaque)
     plb->besr = 0x00000000;
 }
 
-static void ppc4xx_plb_init(CPUPPCState *env)
+void ppc4xx_plb_init(CPUPPCState *env)
 {
     ppc4xx_plb_t *plb;
 
@@ -585,7 +585,7 @@ static void ebc_reset (void *opaque)
     ebc->cfg = 0x80400000;
 }
 
-static void ppc405_ebc_init(CPUPPCState *env)
+void ppc405_ebc_init(CPUPPCState *env)
 {
     ppc4xx_ebc_t *ebc;
 
This page took 0.027351 seconds and 4 git commands to generate.