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/sm501.c | |
parent | 2ff0c7c3c2251e7e81e90c9556dda64261d033ec (diff) | |
download | qemu-39186d8ab8af8937cee4743cc1956bdc28923ac9.tar.gz qemu-39186d8ab8af8937cee4743cc1956bdc28923ac9.tar.bz2 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/sm501.c')
-rw-r--r-- | hw/sm501.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/sm501.c b/hw/sm501.c index fddf21a5fa..6b54717d97 100644 --- a/hw/sm501.c +++ b/hw/sm501.c @@ -30,6 +30,7 @@ #include "sysbus.h" #include "qdev-addr.h" #include "range.h" +#include "exec-memory.h" /* * Status: 2010/05/07 @@ -1440,7 +1441,8 @@ void sm501_init(uint32_t base, uint32_t local_mem_bytes, qemu_irq irq, /* bridge to serial emulation module */ if (chr) { - serial_mm_init(base + MMIO_BASE_OFFSET + SM501_UART0, 2, + serial_mm_init(get_system_memory(), + base + MMIO_BASE_OFFSET + SM501_UART0, 2, NULL, /* TODO : chain irq to IRL */ 115200, chr, DEVICE_NATIVE_ENDIAN); } |