mc146818rtc: Include mc146818rtc_regs.h directly in mc146818rtc.c
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 18 Oct 2019 13:35:46 +0000 (15:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Oct 2019 12:24:55 +0000 (14:24 +0200)
Devices/boards wanting to use the MC146818 RTC don't need
the knowledge its internal registers. Move the "mc146818rtc_regs.h"
inclusion to mc146818rtc.c where it is required.

We can not move this file from include/hw/timer/ to hw/timer/ for
local inclusion because the ACPI FADT table use the RTC_CENTURY
register address.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20191018133547.10936-4-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/timer/mc146818rtc.c
include/hw/timer/mc146818rtc.h

index 09edb934e5f2f67c464d748b6ba916e650b849ef..dce4dae4830aa6d2edb655bb9d907031e4b7f5b3 100644 (file)
@@ -40,6 +40,7 @@
 #include "qapi/qapi-events-misc-target.h"
 #include "qapi/visitor.h"
 #include "exec/address-spaces.h"
+#include "hw/timer/mc146818rtc_regs.h"
 
 #ifdef TARGET_I386
 #include "qapi/qapi-commands-misc-target.h"
index 17761cf6d9a7dca116feb348e72f4f296359fdbd..a857dcdc69f9070ebc1808979e7fed3f909f6e30 100644 (file)
@@ -5,7 +5,6 @@
 #include "qemu/queue.h"
 #include "qemu/timer.h"
 #include "hw/isa/isa.h"
-#include "hw/timer/mc146818rtc_regs.h"
 
 #define TYPE_MC146818_RTC "mc146818rtc"
 #define MC146818_RTC(obj) OBJECT_CHECK(RTCState, (obj), TYPE_MC146818_RTC)