mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
ppc440: Pass in address_space_mem to ppc440ep_init
Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
52ce55a102
commit
3e9f0113b4
3 changed files with 12 additions and 10 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "device_tree.h"
|
||||
#include "loader.h"
|
||||
#include "elf.h"
|
||||
#include "exec-memory.h"
|
||||
|
||||
#define BINARY_DEVICE_TREE_FILE "bamboo.dtb"
|
||||
|
||||
|
@ -96,6 +97,7 @@ static void bamboo_init(ram_addr_t ram_size,
|
|||
const char *cpu_model)
|
||||
{
|
||||
unsigned int pci_irq_nrs[4] = { 28, 27, 26, 25 };
|
||||
MemoryRegion *address_space_mem = get_system_memory();
|
||||
PCIBus *pcibus;
|
||||
CPUState *env;
|
||||
uint64_t elf_entry;
|
||||
|
@ -107,7 +109,8 @@ static void bamboo_init(ram_addr_t ram_size,
|
|||
int i;
|
||||
|
||||
/* Setup CPU. */
|
||||
env = ppc440ep_init(&ram_size, &pcibus, pci_irq_nrs, 1, cpu_model);
|
||||
env = ppc440ep_init(address_space_mem, &ram_size, &pcibus,
|
||||
pci_irq_nrs, 1, cpu_model);
|
||||
|
||||
if (pcibus) {
|
||||
/* Register network interfaces. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue