mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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>
This commit is contained in:
parent
2ff0c7c3c2
commit
39186d8ab8
14 changed files with 63 additions and 43 deletions
|
@ -446,8 +446,8 @@ static MaltaFPGAState *malta_fpga_init(MemoryRegion *address_space,
|
|||
|
||||
s->display = qemu_chr_new("fpga", "vc:320x200", malta_fpga_led_init);
|
||||
|
||||
s->uart = serial_mm_init(base + 0x900, 3, uart_irq, 230400, uart_chr,
|
||||
DEVICE_NATIVE_ENDIAN);
|
||||
s->uart = serial_mm_init(address_space, base + 0x900, 3, uart_irq,
|
||||
230400, uart_chr, DEVICE_NATIVE_ENDIAN);
|
||||
|
||||
malta_fpga_reset(s);
|
||||
qemu_register_reset(malta_fpga_reset, s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue