bandit: fix return value for empty slots.
This commit is contained in:
parent
32b8c8ed43
commit
e097b7a0a1
|
@ -79,7 +79,7 @@ uint32_t Bandit::pci_cfg_read(uint32_t reg_offs, uint32_t size)
|
||||||
this->pci_name.c_str(), reg_offs);
|
this->pci_name.c_str(), reg_offs);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0xFFFFFFFFUL; // PCI spec §6.1
|
||||||
}
|
}
|
||||||
|
|
||||||
void Bandit::pci_cfg_write(uint32_t reg_offs, uint32_t value, uint32_t size)
|
void Bandit::pci_cfg_write(uint32_t reg_offs, uint32_t value, uint32_t size)
|
||||||
|
@ -134,7 +134,7 @@ uint32_t Bandit::read(uint32_t reg_start, uint32_t offset, int size)
|
||||||
"%s err: read attempt from non-existing PCI device %d",
|
"%s err: read attempt from non-existing PCI device %d",
|
||||||
this->name.c_str(),
|
this->name.c_str(),
|
||||||
idsel);
|
idsel);
|
||||||
result = 0;
|
return 0xFFFFFFFFUL; // PCI spec §6.1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -272,7 +272,7 @@ uint32_t Chaos::read(uint32_t reg_start, uint32_t offset, int size)
|
||||||
"%s err: read attempt from non-existing VCI device %d",
|
"%s err: read attempt from non-existing VCI device %d",
|
||||||
this->name.c_str(),
|
this->name.c_str(),
|
||||||
idsel);
|
idsel);
|
||||||
result = 0;
|
return 0xFFFFFFFFUL; // PCI spec §6.1
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
result = this->config_addr;
|
result = this->config_addr;
|
||||||
|
|
Loading…
Reference in New Issue