summaryrefslogtreecommitdiffstats
path: root/hw/ppc/spapr.c
diff options
context:
space:
mode:
authorDavid Gibson2015-02-06 04:55:47 +0100
committerAlexander Graf2015-03-09 14:59:56 +0100
commit12f421745cd763742377c7134f48fa12fb889ee3 (patch)
treea10b274c4058d63993dcf0445f5e3f8a5b99b104 /hw/ppc/spapr.c
parentAdd more VMSTATE_*_TEST variants for integers (diff)
downloadqemu-12f421745cd763742377c7134f48fa12fb889ee3.tar.gz
qemu-12f421745cd763742377c7134f48fa12fb889ee3.tar.xz
qemu-12f421745cd763742377c7134f48fa12fb889ee3.zip
pseries: Move sPAPR RTC code into its own file
At the moment the RTAS (firmware/hypervisor) time of day functions are implemented in spapr_rtas.c along with a bunch of other things. Since we're going to be expanding these a bit, move the RTAS RTC related code out into new file spapr_rtc.c. Also add its own initialization function, spapr_rtc_init() called from the main machine init routine. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc/spapr.c')
-rw-r--r--hw/ppc/spapr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 7a1b8c6f45..cb0e54b69e 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -1491,6 +1491,9 @@ static void ppc_spapr_init(MachineState *machine)
/* Set up EPOW events infrastructure */
spapr_events_init(spapr);
+ /* Set up the RTC RTAS interfaces */
+ spapr_rtc_init();
+
/* Set up VIO bus */
spapr->vio_bus = spapr_vio_bus_init();