From 49c29d6c2e8ce2d3cddf9a92452d1ccb78051517 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 28 Dec 2017 17:50:14 -0800 Subject: target/hppa: Implement the interval timer Signed-off-by: Richard Henderson --- target/hppa/cpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'target/hppa/cpu.c') diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c index 888a48f16d..6be6eb0a7b 100644 --- a/target/hppa/cpu.c +++ b/target/hppa/cpu.c @@ -99,6 +99,14 @@ static void hppa_cpu_realizefn(DeviceState *dev, Error **errp) qemu_init_vcpu(cs); acc->parent_realize(dev, errp); + +#ifndef CONFIG_USER_ONLY + { + HPPACPU *cpu = HPPA_CPU(cs); + cpu->alarm_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, + hppa_cpu_alarm_timer, cpu); + } +#endif } /* Sort hppabetically by type name. */ -- cgit v1.2.1