diff options
author | Andreas Färber <afaerber@suse.de> | 2012-04-02 14:00:43 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-04-04 19:06:17 +0200 |
commit | b8ba6799f41cccd1e81ec2986f2f80fc916ef86f (patch) | |
tree | 92c64a846a75576032f57939bf43b925c77e56d5 /target-s390x/cpu.c | |
parent | 8f22e0df803697c11e8b10c90cc2e67df6e42884 (diff) |
target-s390x: Update s390x_{tod,cpu}_timer() to use S390CPU
In place of CPUS390XState pass S390CPU as opaque from the new initfn.
cpu_interrupt() is anticipated to take a CPUState in the future.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'target-s390x/cpu.c')
-rw-r--r-- | target-s390x/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-s390x/cpu.c b/target-s390x/cpu.c index 72ec34950b..f183213eab 100644 --- a/target-s390x/cpu.c +++ b/target-s390x/cpu.c @@ -60,8 +60,8 @@ static void s390_cpu_initfn(Object *obj) env->tod_offset = TOD_UNIX_EPOCH + (time2tod(mktimegm(&tm)) * 1000000000ULL); env->tod_basetime = 0; - env->tod_timer = qemu_new_timer_ns(vm_clock, s390x_tod_timer, env); - env->cpu_timer = qemu_new_timer_ns(vm_clock, s390x_cpu_timer, env); + env->tod_timer = qemu_new_timer_ns(vm_clock, s390x_tod_timer, cpu); + env->cpu_timer = qemu_new_timer_ns(vm_clock, s390x_cpu_timer, cpu); #endif env->cpu_num = cpu_num++; env->ext_index = -1; |