aboutsummaryrefslogtreecommitdiff
path: root/hw/rtc/trace-events
diff options
context:
space:
mode:
authorAnup Patel <Anup.Patel@wdc.com>2019-11-06 11:56:36 +0000
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-02-10 12:01:37 -0800
commit9a5b40b84279d60c0d93e5bb174fc9b49f901c91 (patch)
treef145c21957042bbbdff68fe4f81b5a0b3266bf05 /hw/rtc/trace-events
parentae4a70c07196b76a67b772318b714ce910e10004 (diff)
downloadqemu-9a5b40b84279d60c0d93e5bb174fc9b49f901c91.zip
qemu-9a5b40b84279d60c0d93e5bb174fc9b49f901c91.tar.gz
qemu-9a5b40b84279d60c0d93e5bb174fc9b49f901c91.tar.bz2
hw: rtc: Add Goldfish RTC device
This patch adds model for Google Goldfish virtual platform RTC device. We will be adding Goldfish RTC device to the QEMU RISC-V virt machine for providing real date-time to Guest Linux. The corresponding Linux driver for Goldfish RTC device is already available in upstream Linux. For now, VM migration support is available but untested for Goldfish RTC device. It will be hardened in-future when we implement VM migration for KVM RISC-V. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'hw/rtc/trace-events')
-rw-r--r--hw/rtc/trace-events4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/rtc/trace-events b/hw/rtc/trace-events
index 52c1566..c9894e1 100644
--- a/hw/rtc/trace-events
+++ b/hw/rtc/trace-events
@@ -23,3 +23,7 @@ m48txx_nvram_io_read(uint64_t addr, uint64_t value) "io read addr:0x%04" PRIx64
m48txx_nvram_io_write(uint64_t addr, uint64_t value) "io write addr:0x%04" PRIx64 " value:0x%02" PRIx64
m48txx_nvram_mem_read(uint32_t addr, uint32_t value) "mem read addr:0x%04x value:0x%02x"
m48txx_nvram_mem_write(uint32_t addr, uint32_t value) "mem write addr:0x%04x value:0x%02x"
+
+# goldfish_rtc.c
+goldfish_rtc_read(uint64_t addr, uint64_t value) "addr 0x%02" PRIx64 " value 0x%08" PRIx64
+goldfish_rtc_write(uint64_t addr, uint64_t value) "addr 0x%02" PRIx64 " value 0x%08" PRIx64