diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-03 19:04:42 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-03 19:04:42 +0000 |
commit | f4b1a842d71ced24fb6b9145b9d1eadc48d64291 (patch) | |
tree | 08bdfc29f09ad43b26f10a6fe44e0ef52a621a8d /hw | |
parent | 48585ec51df87e4da1f5af9c69770194b32d17b3 (diff) |
Rearrange tick functions
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5408 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r-- | hw/sun4u.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/hw/sun4u.c b/hw/sun4u.c index 0c0091beb..432e5d8b0 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -309,6 +309,21 @@ static void hstick_irq(void *opaque) cpu_interrupt(env, CPU_INTERRUPT_TIMER); } +void cpu_tick_set_count(void *opaque, uint64_t count) +{ + ptimer_set_count(opaque, -count); +} + +uint64_t cpu_tick_get_count(void *opaque) +{ + return -ptimer_get_count(opaque); +} + +void cpu_tick_set_limit(void *opaque, uint64_t limit) +{ + ptimer_set_limit(opaque, -limit, 0); +} + static const int ide_iobase[2] = { 0x1f0, 0x170 }; static const int ide_iobase2[2] = { 0x3f6, 0x376 }; static const int ide_irq[2] = { 14, 15 }; |