summaryrefslogtreecommitdiffstats
path: root/hw/alpha
diff options
context:
space:
mode:
authorRichard Henderson2013-07-14 02:23:37 +0200
committerRichard Henderson2013-07-14 22:40:36 +0200
commite605e969953d793036dbd450da6b59bb434fb3d8 (patch)
tree31b51e01480e1b5e87d4516625d925dcf221205f /hw/alpha
parenthw/alpha: Drop latch_tmp hack (diff)
downloadqemu-e605e969953d793036dbd450da6b59bb434fb3d8.tar.gz
qemu-e605e969953d793036dbd450da6b59bb434fb3d8.tar.xz
qemu-e605e969953d793036dbd450da6b59bb434fb3d8.zip
hw/alpha: Use SRM epoch
The 1980 epoch is used by the ARC PALcode for NT. But we're emulating a system using the SRM PALcode. Using the proper epoch results in less confusion in the guest userland. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'hw/alpha')
-rw-r--r--hw/alpha/dp264.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/alpha/dp264.c b/hw/alpha/dp264.c
index 8dad08fac2..95fde615be 100644
--- a/hw/alpha/dp264.c
+++ b/hw/alpha/dp264.c
@@ -73,7 +73,9 @@ static void clipper_init(QEMUMachineInitArgs *args)
pci_bus = typhoon_init(ram_size, &isa_bus, &rtc_irq, cpus,
clipper_pci_map_irq);
- rtc_init(isa_bus, 1980, rtc_irq);
+ /* Since we have an SRM-compatible PALcode, use the SRM epoch. */
+ rtc_init(isa_bus, 1900, rtc_irq);
+
pit_init(isa_bus, 0x40, 0, NULL);
isa_create_simple(isa_bus, "i8042");