From 5a56eba4295bc816935fd9641feabdecda8e09d1 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 2 Apr 2006 19:11:31 +0000 Subject: [PATCH] do not test reserved config bits --- hw/pci.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index e415ccf6..fd4ccd94 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -353,9 +353,6 @@ static void pci_data_write(void *opaque, uint32_t addr, if (!(s->config_reg & (1 << 31))) { return; } - if ((s->config_reg & 0x3) != 0) { - return; - } bus_num = (s->config_reg >> 16) & 0xff; if (bus_num != 0) return; @@ -380,8 +377,6 @@ static uint32_t pci_data_read(void *opaque, uint32_t addr, if (!(s->config_reg & (1 << 31))) goto fail; - if ((s->config_reg & 0x3) != 0) - goto fail; bus_num = (s->config_reg >> 16) & 0xff; if (bus_num != 0) goto fail; -- 2.39.5