]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ioapic: fix contents of arbitration register
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Jul 2015 08:21:00 +0000 (10:21 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Sep 2015 10:04:42 +0000 (12:04 +0200)
The arbitration register should read to the same value as the
IOAPIC id register.  Fixes kvm-unit-tests ioapic.flat.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/intc/ioapic.c

index 6ad3c66c1b3e6171b8f93c2caa496e58a65b28c4..bde52e8953bc0305c9db8070f857bdfb836077a9 100644 (file)
@@ -156,15 +156,13 @@ ioapic_mem_read(void *opaque, hwaddr addr, unsigned int size)
         }
         switch (s->ioregsel) {
         case IOAPIC_REG_ID:
+        case IOAPIC_REG_ARB:
             val = s->id << IOAPIC_ID_SHIFT;
             break;
         case IOAPIC_REG_VER:
             val = IOAPIC_VERSION |
                 ((IOAPIC_NUM_PINS - 1) << IOAPIC_VER_ENTRIES_SHIFT);
             break;
-        case IOAPIC_REG_ARB:
-            val = 0;
-            break;
         default:
             index = (s->ioregsel - IOAPIC_REG_REDTBL_BASE) >> 1;
             if (index >= 0 && index < IOAPIC_NUM_PINS) {