summaryrefslogtreecommitdiffstats
path: root/hw/sparc
diff options
context:
space:
mode:
authorMark Cave-Ayland2015-03-02 23:23:27 +0100
committerMark Cave-Ayland2015-03-10 10:18:56 +0100
commit6de0497385cbbbbd5f20ca712389b3691ea5c96d (patch)
tree91c3062ca4506578ac97345d466cb967d43b5530 /hw/sparc
parentm48t59: let init functions return a Nvram object (diff)
downloadqemu-6de0497385cbbbbd5f20ca712389b3691ea5c96d.tar.gz
qemu-6de0497385cbbbbd5f20ca712389b3691ea5c96d.tar.xz
qemu-6de0497385cbbbbd5f20ca712389b3691ea5c96d.zip
m48t59: introduce new base-year qdev property
Currently the m48t59 device uses the hardware model in order to determine whether the year value is offset from the hardware value. As this will soon be required by the x59 model, create a qdev base-year property to represent the base year and update the callers appropriately. Reviewed-by: Hervé Poussineau <hpoussin@reactos.org> CC: Andreas Färber <afaerber@suse.de> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/sparc')
-rw-r--r--hw/sparc/sun4m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c
index d391f8e8a5..b879aa91eb 100644
--- a/hw/sparc/sun4m.c
+++ b/hw/sparc/sun4m.c
@@ -1014,7 +1014,7 @@ static void sun4m_hw_init(const struct sun4m_hwdef *hwdef,
lance_init(&nd_table[0], hwdef->le_base, ledma, ledma_irq);
- nvram = m48t59_init(slavio_irq[0], hwdef->nvram_base, 0, 0x2000, 8);
+ nvram = m48t59_init(slavio_irq[0], hwdef->nvram_base, 0, 0x2000, 1968, 8);
slavio_timer_init_all(hwdef->counter_base, slavio_irq[19], slavio_cpu_irq, smp_cpus);