summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-06-04 13:12:05 +0100
committerPaul Brook <paul@codesourcery.com>2009-06-04 13:12:05 +0100
commitbdb11366b9370e97fb436444c697c01fe839dc11 (patch)
tree029aadb55bb219df61dc353e89f38c16629df0a7 /hw/armv7m.c
parentAdd --enable-debug (diff)
downloadqemu-kvm-bdb11366b9370e97fb436444c697c01fe839dc11.tar.gz
qemu-kvm-bdb11366b9370e97fb436444c697c01fe839dc11.tar.bz2
qemu-kvm-bdb11366b9370e97fb436444c697c01fe839dc11.zip
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>
Diffstat (limited to 'hw/armv7m.c')
-rw-r--r--hw/armv7m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/armv7m.c b/hw/armv7m.c
index 9657ed1f1..c3c5b9e34 100644
--- a/hw/armv7m.c
+++ b/hw/armv7m.c
@@ -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]);