projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96555a9
)
Fix sparc-softmmu breakage by ee6847d19be16c789b8bd4e553b7cd6701ba1245
author
Blue Swirl
<blauwirbel@gmail.com>
Fri, 17 Jul 2009 11:01:47 +0000
(11:01 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Fri, 17 Jul 2009 11:01:47 +0000
(11:01 +0000)
Move the qdev_init(dev); call after the setting of d->size.
Thanks to Filip Navara.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/sun4m.c
patch
|
blob
|
history
diff --git
a/hw/sun4m.c
b/hw/sun4m.c
index 4954ba37da13a5fa20854b37084f36672d2713da..c810b35984c63352e524d57c97ae59928fa1578e 100644
(file)
--- a/
hw/sun4m.c
+++ b/
hw/sun4m.c
@@
-510,11
+510,11
@@
static void ram_init(target_phys_addr_t addr, ram_addr_t RAM_size,
exit(1);
}
dev = qdev_create(NULL, "memory");
- qdev_init(dev);
s = sysbus_from_qdev(dev);
d = FROM_SYSBUS(RamDevice, s);
d->size = RAM_size;
+ qdev_init(dev);
sysbus_mmio_map(s, 0, addr);
}