From: Peter Maydell <peter.maydell@linaro.org>
To: Aurelien Jarno <aurelien@aurel32.net>,
Blue Swirl <blauwirbel@gmail.com>,
Anthony Liguori <aliguori@us.ibm.com>
Cc: qemu-devel@nongnu.org, Paul Brook <paul@codesourcery.com>
Subject: [Qemu-devel] [PULL 06/21] hw/arm/integratorcp: Don't use arm_pic_init_cpu()
Date: Tue, 20 Aug 2013 15:07:45 +0100 [thread overview]
Message-ID: <1377007680-4934-7-git-send-email-peter.maydell@linaro.org> (raw)
In-Reply-To: <1377007680-4934-1-git-send-email-peter.maydell@linaro.org>
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1375977856-25046-6-git-send-email-peter.maydell@linaro.org
---
hw/arm/integratorcp.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/hw/arm/integratorcp.c b/hw/arm/integratorcp.c
index d518188..59c3726 100644
--- a/hw/arm/integratorcp.c
+++ b/hw/arm/integratorcp.c
@@ -465,7 +465,6 @@ static void integratorcp_init(QEMUMachineInitArgs *args)
MemoryRegion *ram = g_new(MemoryRegion, 1);
MemoryRegion *ram_alias = g_new(MemoryRegion, 1);
qemu_irq pic[32];
- qemu_irq *cpu_pic;
DeviceState *dev;
int i;
@@ -493,10 +492,10 @@ static void integratorcp_init(QEMUMachineInitArgs *args)
qdev_init_nofail(dev);
sysbus_mmio_map((SysBusDevice *)dev, 0, 0x10000000);
- cpu_pic = arm_pic_init_cpu(cpu);
dev = sysbus_create_varargs(TYPE_INTEGRATOR_PIC, 0x14000000,
- cpu_pic[ARM_PIC_CPU_IRQ],
- cpu_pic[ARM_PIC_CPU_FIQ], NULL);
+ qdev_get_gpio_in(DEVICE(cpu), ARM_CPU_IRQ),
+ qdev_get_gpio_in(DEVICE(cpu), ARM_CPU_FIQ),
+ NULL);
for (i = 0; i < 32; i++) {
pic[i] = qdev_get_gpio_in(dev, i);
}
--
1.7.9.5
next prev parent reply other threads:[~2013-08-20 14:25 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-20 14:07 [Qemu-devel] [PULL 00/21] target-arm queue Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 01/21] target-arm: Implement 'int' loglevel Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 02/21] target-arm: Make IRQ and FIQ gpio lines on the CPU object Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 03/21] hw/arm/armv7m: Don't use arm_pic_init_cpu() Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 04/21] hw/arm/exynos4210: " Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 05/21] hw/arm/highbank: " Peter Maydell
2013-08-20 14:07 ` Peter Maydell [this message]
2013-08-20 14:07 ` [Qemu-devel] [PULL 07/21] hw/arm/kzm: " Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 08/21] hw/arm/musicpal: " Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 09/21] hw/arm/omap*: " Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 10/21] hw/arm/realview: " Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 11/21] hw/arm/strongarm: " Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 12/21] hw/arm/versatilepb: " Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 13/21] hw/arm/vexpress: " Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 14/21] hw/arm/xilinx_zynq: " Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 15/21] hw/arm/pic_cpu: Remove the now-unneeded arm_pic_init_cpu() Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 16/21] target-arm: Allow raw_read() and raw_write() to handle 64 bit regs Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 17/21] target-arm: Support coprocessor registers which do I/O Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 18/21] target-arm: Implement the generic timer Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 19/21] hw/cpu/a15mpcore: Wire generic timer outputs to GIC inputs Peter Maydell
2013-08-20 14:07 ` [Qemu-devel] [PULL 20/21] default-configs: Fix A9MP and A15MP config names Peter Maydell
2013-08-20 14:08 ` [Qemu-devel] [PULL 21/21] hw/timer/imx_epit: Simplify and fix imx_epit implementation Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1377007680-4934-7-git-send-email-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=aliguori@us.ibm.com \
--cc=aurelien@aurel32.net \
--cc=blauwirbel@gmail.com \
--cc=paul@codesourcery.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).