summaryrefslogtreecommitdiffstats
path: root/hw/timer
diff options
context:
space:
mode:
authorDov Murik2020-09-09 10:36:49 +0200
committerLaurent Vivier2020-09-16 11:14:29 +0200
commitd6892f12a5c5ca258b85dfc4d210e7604b0e3dcf (patch)
treeb31a6cc0c9c3cd7b7351c943c390f704036f62e4 /hw/timer
parentmeson: remove empty else and duplicated gio deps (diff)
downloadqemu-d6892f12a5c5ca258b85dfc4d210e7604b0e3dcf.tar.gz
qemu-d6892f12a5c5ca258b85dfc4d210e7604b0e3dcf.tar.xz
qemu-d6892f12a5c5ca258b85dfc4d210e7604b0e3dcf.zip
hw/timer/hpet: Remove unused functions hpet_ram_readb, hpet_ram_readw
Fix compiler error about defined but not used functions when compiling with -DHPET_DEBUG by deleting the unused debug functions hpet_ram_readb and hpet_ram_readw. Signed-off-by: Dov Murik <dovmurik@linux.vnet.ibm.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200909083650.46771-2-dovmurik@linux.vnet.ibm.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/timer')
-rw-r--r--hw/timer/hpet.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c
index 44bbe3a536..07ff82b333 100644
--- a/hw/timer/hpet.c
+++ b/hw/timer/hpet.c
@@ -419,20 +419,6 @@ static void hpet_del_timer(HPETTimer *t)
update_irq(t, 0);
}
-#ifdef HPET_DEBUG
-static uint32_t hpet_ram_readb(void *opaque, hwaddr addr)
-{
- printf("qemu: hpet_read b at %" PRIx64 "\n", addr);
- return 0;
-}
-
-static uint32_t hpet_ram_readw(void *opaque, hwaddr addr)
-{
- printf("qemu: hpet_read w at %" PRIx64 "\n", addr);
- return 0;
-}
-#endif
-
static uint64_t hpet_ram_read(void *opaque, hwaddr addr,
unsigned size)
{