aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@xilinx.com>2018-03-02 10:45:34 +0000
committerPeter Maydell <peter.maydell@linaro.org>2018-03-02 10:45:34 +0000
commit246003ce6799e1de6a2216953917fc4484d24079 (patch)
treea7934e97247a83c6c24e4c1b31b7c39d6ae227a7 /include/hw
parent07664ca68b6fd1be1b5574e6a5e360057fd54322 (diff)
xlnx-zynqmp-rtc: Add basic time support
Allow the guest to determine the time set from the QEMU command line. This includes adding a trace event to debug the new time. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/timer/xlnx-zynqmp-rtc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/timer/xlnx-zynqmp-rtc.h b/include/hw/timer/xlnx-zynqmp-rtc.h
index 87649836cc..5ba4d8bc4a 100644
--- a/include/hw/timer/xlnx-zynqmp-rtc.h
+++ b/include/hw/timer/xlnx-zynqmp-rtc.h
@@ -79,6 +79,8 @@ typedef struct XlnxZynqMPRTC {
qemu_irq irq_rtc_int;
qemu_irq irq_addr_error_int;
+ uint32_t tick_offset;
+
uint32_t regs[XLNX_ZYNQMP_RTC_R_MAX];
RegisterInfo regs_info[XLNX_ZYNQMP_RTC_R_MAX];
} XlnxZynqMPRTC;