do not test reserved config bits
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1795 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
1298fe6316
commit
894244f6ca
5
hw/pci.c
5
hw/pci.c
@ -353,9 +353,6 @@ static void pci_data_write(void *opaque, uint32_t addr,
|
|||||||
if (!(s->config_reg & (1 << 31))) {
|
if (!(s->config_reg & (1 << 31))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((s->config_reg & 0x3) != 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
bus_num = (s->config_reg >> 16) & 0xff;
|
bus_num = (s->config_reg >> 16) & 0xff;
|
||||||
if (bus_num != 0)
|
if (bus_num != 0)
|
||||||
return;
|
return;
|
||||||
@ -380,8 +377,6 @@ static uint32_t pci_data_read(void *opaque, uint32_t addr,
|
|||||||
|
|
||||||
if (!(s->config_reg & (1 << 31)))
|
if (!(s->config_reg & (1 << 31)))
|
||||||
goto fail;
|
goto fail;
|
||||||
if ((s->config_reg & 0x3) != 0)
|
|
||||||
goto fail;
|
|
||||||
bus_num = (s->config_reg >> 16) & 0xff;
|
bus_num = (s->config_reg >> 16) & 0xff;
|
||||||
if (bus_num != 0)
|
if (bus_num != 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user