pcibridge: fix a bug in pci_io_write() caused by copy-and-paste coding.

This commit is contained in:
Maxim Poliakovski 2024-08-17 00:54:20 +02:00
parent 5ea7b8c5f8
commit cd36df5500

View File

@ -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);
}