summaryrefslogtreecommitdiffstats
path: root/hw/timer/sun4v-rtc.c
diff options
context:
space:
mode:
authorEduardo Habkost2018-10-31 01:18:43 +0100
committerEduardo Habkost2018-12-11 18:45:22 +0100
commit51809286adb5e7f51dc8714b349e731c1130b9db (patch)
treec19db15be07b3a0f34647acfa563ef800a62abe5 /hw/timer/sun4v-rtc.c
parenthostmem-file: remove object id from pmem error message (diff)
downloadqemu-51809286adb5e7f51dc8714b349e731c1130b9db.tar.gz
qemu-51809286adb5e7f51dc8714b349e731c1130b9db.tar.xz
qemu-51809286adb5e7f51dc8714b349e731c1130b9db.zip
hw/timer/sun4v-rtc: Fix tracing at sun4v_rtc_write()
The code was converted to use sun4v_rtc_read() by mistake, fix it. Reported-by: David Gibson <david@gibson.dropbear.id.au> Cc: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20181031001843.12892-1-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/timer/sun4v-rtc.c')
-rw-r--r--hw/timer/sun4v-rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/timer/sun4v-rtc.c b/hw/timer/sun4v-rtc.c
index 4e7f6a1eff..b93cbd6a81 100644
--- a/hw/timer/sun4v-rtc.c
+++ b/hw/timer/sun4v-rtc.c
@@ -41,7 +41,7 @@ static uint64_t sun4v_rtc_read(void *opaque, hwaddr addr,
static void sun4v_rtc_write(void *opaque, hwaddr addr,
uint64_t val, unsigned size)
{
- trace_sun4v_rtc_read(addr, val);
+ trace_sun4v_rtc_write(addr, val);
}
static const MemoryRegionOps sun4v_rtc_ops = {