]> git.proxmox.com Git - qemu.git/commitdiff
PPC: MPIC: Remove read functionality for WO registers
authorAlexander Graf <agraf@suse.de>
Sat, 23 Jul 2011 09:09:23 +0000 (11:09 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 6 Oct 2011 07:43:33 +0000 (09:43 +0200)
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 <richa@adacore.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/openpic.c

index 31ad1751fed7de3582aec48f1f8d01004a6771da..dfec52e2e27f7873aee55e2f2d57f138018734e9 100644 (file)
@@ -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;
     }