mcf5208.c (9e5319ca52a5b9e84d55ad9c36e2c0b317a122bb) mcf5208.c (b01422622b7c7293196fdaf1dbb4f495af44ecf9)
1/*
2 * Motorola ColdFire MCF5208 SoC emulation.
3 *
4 * Copyright (c) 2007 CodeSourcery.
5 *
6 * This code is licensed under the GPL
7 */
8

--- 178 unchanged lines hidden (view full) ---

187
188 /* SDRAMC. */
189 memory_region_init_io(iomem, NULL, &m5208_sys_ops, NULL, "m5208-sys", 0x00004000);
190 memory_region_add_subregion(address_space, 0xfc0a8000, iomem);
191 /* Timers. */
192 for (i = 0; i < 2; i++) {
193 s = g_new0(m5208_timer_state, 1);
194 bh = qemu_bh_new(m5208_timer_trigger, s);
1/*
2 * Motorola ColdFire MCF5208 SoC emulation.
3 *
4 * Copyright (c) 2007 CodeSourcery.
5 *
6 * This code is licensed under the GPL
7 */
8

--- 178 unchanged lines hidden (view full) ---

187
188 /* SDRAMC. */
189 memory_region_init_io(iomem, NULL, &m5208_sys_ops, NULL, "m5208-sys", 0x00004000);
190 memory_region_add_subregion(address_space, 0xfc0a8000, iomem);
191 /* Timers. */
192 for (i = 0; i < 2; i++) {
193 s = g_new0(m5208_timer_state, 1);
194 bh = qemu_bh_new(m5208_timer_trigger, s);
195 s->timer = ptimer_init(bh, PTIMER_POLICY_DEFAULT);
195 s->timer = ptimer_init_with_bh(bh, PTIMER_POLICY_DEFAULT);
196 memory_region_init_io(&s->iomem, NULL, &m5208_timer_ops, s,
197 "m5208-timer", 0x00004000);
198 memory_region_add_subregion(address_space, 0xfc080000 + 0x4000 * i,
199 &s->iomem);
200 s->irq = pic[4 + i];
201 }
202}
203

--- 155 unchanged lines hidden ---
196 memory_region_init_io(&s->iomem, NULL, &m5208_timer_ops, s,
197 "m5208-timer", 0x00004000);
198 memory_region_add_subregion(address_space, 0xfc080000 + 0x4000 * i,
199 &s->iomem);
200 s->irq = pic[4 + i];
201 }
202}
203

--- 155 unchanged lines hidden ---