From patchwork Wed Sep 14 08:42:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [09/58] PPC: MPIC: Remove read functionality for WO registers Date: Tue, 13 Sep 2011 22:42:33 -0000 From: Alexander Graf X-Patchwork-Id: 114631 Message-Id: <1315989802-18753-10-git-send-email-agraf@suse.de> To: qemu-devel Developers Cc: Blue Swirl , qemu-ppc@nongnu.org, Aurelien Jarno The IPI dispatch registers are write only according to every MPIC spec I have found. So instead of pretending you could read back something from them, better not handle them at all. Reported-by: Elie Richa Signed-off-by: Alexander Graf --- hw/openpic.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/hw/openpic.c b/hw/openpic.c index 31ad175..dfec52e 100644 --- a/hw/openpic.c +++ b/hw/openpic.c @@ -952,13 +952,6 @@ static uint32_t openpic_cpu_read_internal(void *opaque, target_phys_addr_t addr, case 0xB0: /* PEOI */ retval = 0; break; -#if MAX_IPI > 0 - case 0x40: /* IDE */ - case 0x50: - idx = (addr - 0x40) >> 4; - retval = read_IRQreg(opp, opp->irq_ipi0 + idx, IRQ_IDE); - break; -#endif default: break; }