diff --git a/devices/memctrl/mpc106.cpp b/devices/memctrl/mpc106.cpp index ff28438..bf62faf 100644 --- a/devices/memctrl/mpc106.cpp +++ b/devices/memctrl/mpc106.cpp @@ -91,11 +91,11 @@ uint32_t MPC106::read(uint32_t rgn_start, uint32_t offset, int size) { if (offset >= 0x200000) { if (this->config_addr & 0x80) // process only if bit E (enable) is set return pci_read(offset, size); + } else { + return this->config_addr; } } - // FIXME: reading from CONFIG_ADDR is ignored for now - return 0; }