Revision 1eed09cb hw/omap_sx1.c
b/hw/omap_sx1.c | ||
---|---|---|
142 | 142 |
cpu_register_physical_memory(OMAP_CS0_BASE, flash_size, |
143 | 143 |
(phys_flash = qemu_ram_alloc(flash_size)) | IO_MEM_ROM); |
144 | 144 |
|
145 |
io = cpu_register_io_memory(0, static_readfn, static_writefn, &cs0val);
|
|
145 |
io = cpu_register_io_memory(static_readfn, static_writefn, &cs0val); |
|
146 | 146 |
cpu_register_physical_memory(OMAP_CS0_BASE + flash_size, |
147 | 147 |
OMAP_CS0_SIZE - flash_size, io); |
148 |
io = cpu_register_io_memory(0, static_readfn, static_writefn, &cs2val);
|
|
148 |
io = cpu_register_io_memory(static_readfn, static_writefn, &cs2val); |
|
149 | 149 |
cpu_register_physical_memory(OMAP_CS2_BASE, OMAP_CS2_SIZE, io); |
150 |
io = cpu_register_io_memory(0, static_readfn, static_writefn, &cs3val);
|
|
150 |
io = cpu_register_io_memory(static_readfn, static_writefn, &cs3val); |
|
151 | 151 |
cpu_register_physical_memory(OMAP_CS3_BASE, OMAP_CS3_SIZE, io); |
152 | 152 |
|
153 | 153 |
fl_idx = 0; |
... | ... | |
167 | 167 |
cpu_register_physical_memory(OMAP_CS1_BASE, flash1_size, |
168 | 168 |
(phys_flash = qemu_ram_alloc(flash1_size)) | |
169 | 169 |
IO_MEM_ROM); |
170 |
io = cpu_register_io_memory(0, static_readfn, static_writefn, &cs1val);
|
|
170 |
io = cpu_register_io_memory(static_readfn, static_writefn, &cs1val); |
|
171 | 171 |
cpu_register_physical_memory(OMAP_CS1_BASE + flash1_size, |
172 | 172 |
OMAP_CS1_SIZE - flash1_size, io); |
173 | 173 |
|
... | ... | |
179 | 179 |
} |
180 | 180 |
fl_idx++; |
181 | 181 |
} else { |
182 |
io = cpu_register_io_memory(0, static_readfn, static_writefn, &cs1val);
|
|
182 |
io = cpu_register_io_memory(static_readfn, static_writefn, &cs1val); |
|
183 | 183 |
cpu_register_physical_memory(OMAP_CS1_BASE, OMAP_CS1_SIZE, io); |
184 | 184 |
} |
185 | 185 |
|
Also available in: Unified diff