diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2017-12-21 07:32:57 +0000 |
---|---|---|
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2018-01-09 21:31:31 +0000 |
commit | 2a4d6af51b8330bfd7a7dd677927b8dd2f5f5f08 (patch) | |
tree | 44e3915a4ff2705b9ae35cd7c08680359f02ef2c /hw/sparc64/sparc64.c | |
parent | 588978c0a1e9f5596a12d124b530bdf698ed9104 (diff) | |
download | qemu-2a4d6af51b8330bfd7a7dd677927b8dd2f5f5f08.zip qemu-2a4d6af51b8330bfd7a7dd677927b8dd2f5f5f08.tar.gz qemu-2a4d6af51b8330bfd7a7dd677927b8dd2f5f5f08.tar.bz2 |
apb: use gpios to wire up the apb device to the SPARC CPU IRQs
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com>
Diffstat (limited to 'hw/sparc64/sparc64.c')
-rw-r--r-- | hw/sparc64/sparc64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/sparc64/sparc64.c b/hw/sparc64/sparc64.c index 9453e2c..95a06f0 100644 --- a/hw/sparc64/sparc64.c +++ b/hw/sparc64/sparc64.c @@ -350,6 +350,8 @@ SPARCCPU *sparc64_cpu_devinit(const char *cpu_type, uint64_t prom_addr) uint32_t hstick_frequency = 100 * 1000000; cpu = SPARC_CPU(cpu_create(cpu_type)); + qdev_init_gpio_in_named(DEVICE(cpu), sparc64_cpu_set_ivec_irq, + "ivec-irq", IVEC_MAX); env = &cpu->env; env->tick = cpu_timer_create("tick", cpu, tick_irq, |