mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-05 10:30:28 +00:00
pcibridge: fix a bug in pci_io_write() caused by copy-and-paste coding.
This commit is contained in:
parent
5ea7b8c5f8
commit
cd36df5500
@ -174,5 +174,5 @@ bool PCIBridge::pci_io_write(uint32_t offset, uint32_t value, uint32_t size)
|
||||
{
|
||||
if (!(this->command & 1)) return false;
|
||||
if (offset < this->io_base_32 || offset + size >= this->io_limit_32) return false;
|
||||
return this->pci_io_read_loop(offset, size, value);
|
||||
return this->pci_io_write_loop(offset, size, value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user