mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
Remove ARM NVIC initialization hack
The ARMv7-M NVIC device pokes itself into the CPU state. Now we have a proper device model we can have the CPU/SoC code do this. Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
f3d08ee6ae
commit
bdb11366b9
2 changed files with 1 additions and 6 deletions
|
@ -198,7 +198,7 @@ qemu_irq *armv7m_init(int flash_size, int sram_size,
|
|||
armv7m_bitband_init();
|
||||
|
||||
nvic = qdev_create(NULL, "armv7m_nvic");
|
||||
qdev_set_prop_ptr(nvic, "cpu", env);
|
||||
env->v7m.nvic = nvic;
|
||||
qdev_init(nvic);
|
||||
cpu_pic = arm_pic_init_cpu(env);
|
||||
sysbus_connect_irq(sysbus_from_qdev(nvic), 0, cpu_pic[ARM_PIC_CPU_IRQ]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue