mcf5206.c (e24cdd07216890d24468cdcbdd5a3e60b3e9f23b) mcf5206.c (9bca0edb282de0007a4f068d9d20f3e3c3aadef7)
1/*
2 * Motorola ColdFire MCF5206 SoC embedded peripheral emulation.
3 *
4 * Copyright (c) 2007 CodeSourcery.
5 *
6 * This code is licensed under the GPL
7 */
8#include "qemu/osdep.h"

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

538
539 memory_region_init_io(&s->iomem, NULL, &m5206_mbar_ops, s,
540 "mbar", 0x00001000);
541 memory_region_add_subregion(sysmem, base, &s->iomem);
542
543 pic = qemu_allocate_irqs(m5206_mbar_set_irq, s, 14);
544 s->timer[0] = m5206_timer_init(pic[9]);
545 s->timer[1] = m5206_timer_init(pic[10]);
1/*
2 * Motorola ColdFire MCF5206 SoC embedded peripheral emulation.
3 *
4 * Copyright (c) 2007 CodeSourcery.
5 *
6 * This code is licensed under the GPL
7 */
8#include "qemu/osdep.h"

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

538
539 memory_region_init_io(&s->iomem, NULL, &m5206_mbar_ops, s,
540 "mbar", 0x00001000);
541 memory_region_add_subregion(sysmem, base, &s->iomem);
542
543 pic = qemu_allocate_irqs(m5206_mbar_set_irq, s, 14);
544 s->timer[0] = m5206_timer_init(pic[9]);
545 s->timer[1] = m5206_timer_init(pic[10]);
546 s->uart[0] = mcf_uart_init(pic[12], serial_hds[0]);
547 s->uart[1] = mcf_uart_init(pic[13], serial_hds[1]);
546 s->uart[0] = mcf_uart_init(pic[12], serial_hd(0));
547 s->uart[1] = mcf_uart_init(pic[13], serial_hd(1));
548 s->cpu = cpu;
549
550 m5206_mbar_reset(s);
551 return pic;
552}
548 s->cpu = cpu;
549
550 m5206_mbar_reset(s);
551 return pic;
552}