Commit 894244f6cad355bf118cf6523296a06df1617f9d
1 parent
1298fe63
do not test reserved config bits
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1795 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
0 additions
and
5 deletions
hw/pci.c
| @@ -353,9 +353,6 @@ static void pci_data_write(void *opaque, uint32_t addr, | @@ -353,9 +353,6 @@ static void pci_data_write(void *opaque, uint32_t addr, | ||
| 353 | if (!(s->config_reg & (1 << 31))) { | 353 | if (!(s->config_reg & (1 << 31))) { |
| 354 | return; | 354 | return; |
| 355 | } | 355 | } |
| 356 | - if ((s->config_reg & 0x3) != 0) { | ||
| 357 | - return; | ||
| 358 | - } | ||
| 359 | bus_num = (s->config_reg >> 16) & 0xff; | 356 | bus_num = (s->config_reg >> 16) & 0xff; |
| 360 | if (bus_num != 0) | 357 | if (bus_num != 0) |
| 361 | return; | 358 | return; |
| @@ -380,8 +377,6 @@ static uint32_t pci_data_read(void *opaque, uint32_t addr, | @@ -380,8 +377,6 @@ static uint32_t pci_data_read(void *opaque, uint32_t addr, | ||
| 380 | 377 | ||
| 381 | if (!(s->config_reg & (1 << 31))) | 378 | if (!(s->config_reg & (1 << 31))) |
| 382 | goto fail; | 379 | goto fail; |
| 383 | - if ((s->config_reg & 0x3) != 0) | ||
| 384 | - goto fail; | ||
| 385 | bus_num = (s->config_reg >> 16) & 0xff; | 380 | bus_num = (s->config_reg >> 16) & 0xff; |
| 386 | if (bus_num != 0) | 381 | if (bus_num != 0) |
| 387 | goto fail; | 382 | goto fail; |