OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
228152c
)
hw/ppc/prep: use TYPE_MC146818_RTC instead of a hardcoded string
author
Philippe Mathieu-Daudé
<philmd@redhat.com>
Sun, 5 May 2019 15:28:37 +0000
(17:28 +0200)
committer
David Gibson
<david@gibson.dropbear.id.au>
Wed, 29 May 2019 01:39:44 +0000
(11:39 +1000)
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <
20190505152839
.18650-2-philmd@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/prep.c
patch
|
blob
|
history
diff --git
a/hw/ppc/prep.c
b/hw/ppc/prep.c
index
b7f459d
..
ebee321
100644
(file)
--- a/
hw/ppc/prep.c
+++ b/
hw/ppc/prep.c
@@
-601,7
+601,7
@@
static int prep_set_cmos_checksum(DeviceState *dev, void *opaque)
uint16_t checksum = *(uint16_t *)opaque;
ISADevice *rtc;
- if (object_dynamic_cast(OBJECT(dev),
"mc146818rtc"
)) {
+ if (object_dynamic_cast(OBJECT(dev),
TYPE_MC146818_RTC
)) {
rtc = ISA_DEVICE(dev);
rtc_set_memory(rtc, 0x2e, checksum & 0xff);
rtc_set_memory(rtc, 0x3e, checksum & 0xff);