mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-09-28 10:55:27 +00:00
mpc106: support reading back CONFIG_ADDR.
This commit is contained in:
parent
e64aab1577
commit
5e61b473f0
@ -90,11 +90,11 @@ uint32_t MPC106::read(uint32_t rgn_start, uint32_t offset, int size) {
|
|||||||
if (offset >= 0x200000) {
|
if (offset >= 0x200000) {
|
||||||
if (this->config_addr & 0x80) // process only if bit E (enable) is set
|
if (this->config_addr & 0x80) // process only if bit E (enable) is set
|
||||||
return pci_read(offset, size);
|
return pci_read(offset, size);
|
||||||
|
} else {
|
||||||
|
return this->config_addr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: reading from CONFIG_ADDR is ignored for now
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user