mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
sm501: Pass address_space_mem to sm501_init
Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
a6dc4c2d95
commit
27a9d2eacb
3 changed files with 12 additions and 6 deletions
5
hw/r2d.c
5
hw/r2d.c
|
@ -37,6 +37,7 @@
|
|||
#include "usb.h"
|
||||
#include "flash.h"
|
||||
#include "blockdev.h"
|
||||
#include "exec-memory.h"
|
||||
|
||||
#define FLASH_BASE 0x00000000
|
||||
#define FLASH_SIZE 0x02000000
|
||||
|
@ -235,6 +236,7 @@ static void r2d_init(ram_addr_t ram_size,
|
|||
qemu_irq *irq;
|
||||
DriveInfo *dinfo;
|
||||
int i;
|
||||
MemoryRegion *address_space_mem = get_system_memory();
|
||||
|
||||
if (!cpu_model)
|
||||
cpu_model = "SH7751R";
|
||||
|
@ -258,7 +260,8 @@ static void r2d_init(ram_addr_t ram_size,
|
|||
sysbus_create_varargs("sh_pci", 0x1e200000, irq[PCI_INTA], irq[PCI_INTB],
|
||||
irq[PCI_INTC], irq[PCI_INTD], NULL);
|
||||
|
||||
sm501_init(0x10000000, SM501_VRAM_SIZE, irq[SM501], serial_hds[2]);
|
||||
sm501_init(address_space_mem, 0x10000000, SM501_VRAM_SIZE,
|
||||
irq[SM501], serial_hds[2]);
|
||||
|
||||
/* onboard CF (True IDE mode, Master only). */
|
||||
dinfo = drive_get(IF_IDE, 0, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue