Fix 64 bit BAR.

A 64 bit BAR has least significant 32 bits first as in the original pull request.
This commit is contained in:
joevt 2023-02-05 00:42:14 -08:00
parent cc17035e67
commit f7280c316b
1 changed files with 1 additions and 1 deletions

View File

@ -271,8 +271,8 @@ void PCIDevice::finish_config_bars()
this->pci_name.c_str(), bar_num);
}
else {
bars_typ[bar_num] = PCIBarType::Mem_64_Bit_Hi;
bars_typ[bar_num++] = PCIBarType::Mem_64_Bit_Lo;
bars_typ[bar_num ] = PCIBarType::Mem_64_Bit_Hi;
}
break;
default: