From f4b1a842d71ced24fb6b9145b9d1eadc48d64291 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Fri, 3 Oct 2008 19:04:42 +0000 Subject: Rearrange tick functions git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5408 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/sun4u.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'hw/sun4u.c') diff --git a/hw/sun4u.c b/hw/sun4u.c index 0c0091beb0..432e5d8b09 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 }; -- cgit v1.2.3