mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
07664ca68b
commit
246003ce67
3 changed files with 63 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue