diff options
author | Anup Patel | 2019-11-06 12:56:36 +0100 |
---|---|---|
committer | Palmer Dabbelt | 2020-02-10 21:01:37 +0100 |
commit | 9a5b40b84279d60c0d93e5bb174fc9b49f901c91 (patch) | |
tree | f145c21957042bbbdff68fe4f81b5a0b3266bf05 /hw/rtc/trace-events | |
parent | riscv: Separate FPU register size from core register size in gdbstub [v2] (diff) | |
download | qemu-9a5b40b84279d60c0d93e5bb174fc9b49f901c91.tar.gz qemu-9a5b40b84279d60c0d93e5bb174fc9b49f901c91.tar.xz qemu-9a5b40b84279d60c0d93e5bb174fc9b49f901c91.zip |
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-events | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/rtc/trace-events b/hw/rtc/trace-events index 52c1566198..c9894e1747 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 |