Revision 22ed1d34 hw/omap_sx1.c

b/hw/omap_sx1.c
126 126
    static uint32_t cs1val = 0x00215070;
127 127
    static uint32_t cs2val = 0x00001139;
128 128
    static uint32_t cs3val = 0x00001139;
129
    ram_addr_t phys_flash;
130 129
    DriveInfo *dinfo;
131 130
    int fl_idx;
132 131
    uint32_t flash_size = flash0_size;
......
140 139

  
141 140
    /* External Flash (EMIFS) */
142 141
    cpu_register_physical_memory(OMAP_CS0_BASE, flash_size,
143
                    (phys_flash = qemu_ram_alloc(flash_size)) | IO_MEM_ROM);
142
                                 qemu_ram_alloc(flash_size) | IO_MEM_ROM);
144 143

  
145 144
    io = cpu_register_io_memory(static_readfn, static_writefn, &cs0val);
146 145
    cpu_register_physical_memory(OMAP_CS0_BASE + flash_size,
......
171 170
    if ((version == 1) &&
172 171
            (dinfo = drive_get(IF_PFLASH, 0, fl_idx)) != NULL) {
173 172
        cpu_register_physical_memory(OMAP_CS1_BASE, flash1_size,
174
                        (phys_flash = qemu_ram_alloc(flash1_size)) |
175
                        IO_MEM_ROM);
173
                                     qemu_ram_alloc(flash1_size) | IO_MEM_ROM);
176 174
        io = cpu_register_io_memory(static_readfn, static_writefn, &cs1val);
177 175
        cpu_register_physical_memory(OMAP_CS1_BASE + flash1_size,
178 176
                        OMAP_CS1_SIZE - flash1_size, io);

Also available in: Unified diff