Revision fbe15adf hw/stellaris.c

b/hw/stellaris.c
15 15
#include "i2c.h"
16 16
#include "net.h"
17 17
#include "boards.h"
18
#include "exec-memory.h"
18 19

  
19 20
#define GPIO_A 0
20 21
#define GPIO_B 1
......
1260 1261
        0x40024000, 0x40025000, 0x40026000};
1261 1262
    static const int gpio_irq[7] = {0, 1, 2, 3, 4, 30, 31};
1262 1263

  
1264
    MemoryRegion *address_space_mem = get_system_memory();
1263 1265
    qemu_irq *pic;
1264 1266
    DeviceState *gpio_dev[7];
1265 1267
    qemu_irq gpio_in[7][8];
......
1274 1276

  
1275 1277
    flash_size = ((board->dc0 & 0xffff) + 1) << 1;
1276 1278
    sram_size = (board->dc0 >> 18) + 1;
1277
    pic = armv7m_init(flash_size, sram_size, kernel_filename, cpu_model);
1279
    pic = armv7m_init(address_space_mem,
1280
                      flash_size, sram_size, kernel_filename, cpu_model);
1278 1281

  
1279 1282
    if (board->dc1 & (1 << 16)) {
1280 1283
        dev = sysbus_create_varargs("stellaris-adc", 0x40038000,

Also available in: Unified diff