diff options
author | Richard Henderson <rth@twiddle.net> | 2011-08-11 16:07:16 -0700 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-10-02 16:14:02 +0200 |
commit | 39186d8ab8af8937cee4743cc1956bdc28923ac9 (patch) | |
tree | 24c3d9953aa8900f96aae4086799a4795502de43 /hw/sun4u.c | |
parent | 2ff0c7c3c2251e7e81e90c9556dda64261d033ec (diff) | |
download | qemu-39186d8ab8af8937cee4743cc1956bdc28923ac9.zip |
serial: Add MemoryRegion parameter to serial_mm_init
Remove the get_system_memory() call from serial_mm_init, pushing
it back into the callers. In many cases we already have the
system memory region available.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/sun4u.c')
-rw-r--r-- | hw/sun4u.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/sun4u.c b/hw/sun4u.c index 60e1e9d5ef..28a537435b 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -38,6 +38,7 @@ #include "loader.h" #include "elf.h" #include "blockdev.h" +#include "exec-memory.h" //#define DEBUG_IRQ //#define DEBUG_EBUS @@ -770,8 +771,8 @@ static void sun4uv_init(ram_addr_t RAM_size, i = 0; if (hwdef->console_serial_base) { - serial_mm_init(hwdef->console_serial_base, 0, NULL, 115200, - serial_hds[i], DEVICE_BIG_ENDIAN); + serial_mm_init(get_system_memory(), hwdef->console_serial_base, 0, + NULL, 115200, serial_hds[i], DEVICE_BIG_ENDIAN); i++; } for(; i < MAX_SERIAL_PORTS; i++) { |