summaryrefslogtreecommitdiffstats
path: root/include/hw/rtc/goldfish_rtc.h
diff options
context:
space:
mode:
authorStafford Horne2022-06-12 13:53:44 +0200
committerStafford Horne2022-09-04 08:02:56 +0200
commit65f5144e1726c36c97df7e70484250941aafaa27 (patch)
tree9b52b2dcbead78aa6d7c14c1378fa5b52d5f1676 /include/hw/rtc/goldfish_rtc.h
parenttarget/openrisc: Fix memory reading in debugger (diff)
downloadqemu-65f5144e1726c36c97df7e70484250941aafaa27.tar.gz
qemu-65f5144e1726c36c97df7e70484250941aafaa27.tar.xz
qemu-65f5144e1726c36c97df7e70484250941aafaa27.zip
goldfish_rtc: Add big-endian property
Add a new property "big-endian" to allow configuring the RTC as either little or big endian, the default is little endian. Currently overriding the default to big endian is only used by the m68k virt platform. New platforms should prefer to use little endian and not set this. Cc: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Anup Patel <anup@brainfault.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'include/hw/rtc/goldfish_rtc.h')
-rw-r--r--include/hw/rtc/goldfish_rtc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/rtc/goldfish_rtc.h b/include/hw/rtc/goldfish_rtc.h
index 79ca7daf5d..162be33863 100644
--- a/include/hw/rtc/goldfish_rtc.h
+++ b/include/hw/rtc/goldfish_rtc.h
@@ -42,6 +42,8 @@ struct GoldfishRTCState {
uint32_t irq_pending;
uint32_t irq_enabled;
uint32_t time_high;
+
+ bool big_endian;
};
#endif