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/pc.h | |
parent | 2ff0c7c3c2251e7e81e90c9556dda64261d033ec (diff) | |
download | qemu-39186d8ab8af8937cee4743cc1956bdc28923ac9.zip qemu-39186d8ab8af8937cee4743cc1956bdc28923ac9.tar.gz qemu-39186d8ab8af8937cee4743cc1956bdc28923ac9.tar.bz2 |
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/pc.h')
-rw-r--r-- | hw/pc.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -15,9 +15,10 @@ SerialState *serial_init(int base, qemu_irq irq, int baudbase, CharDriverState *chr); -SerialState *serial_mm_init (target_phys_addr_t base, int it_shift, - qemu_irq irq, int baudbase, - CharDriverState *chr, enum device_endian); +SerialState *serial_mm_init(MemoryRegion *address_space, + target_phys_addr_t base, int it_shift, + qemu_irq irq, int baudbase, + CharDriverState *chr, enum device_endian); static inline bool serial_isa_init(int index, CharDriverState *chr) { ISADevice *dev; |