From f7280c316b4a1415e57eebf4911bfdad6fed605c Mon Sep 17 00:00:00 2001 From: joevt Date: Sun, 5 Feb 2023 00:42:14 -0800 Subject: [PATCH] Fix 64 bit BAR. A 64 bit BAR has least significant 32 bits first as in the original pull request. --- devices/common/pci/pcidevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/common/pci/pcidevice.cpp b/devices/common/pci/pcidevice.cpp index 32fa0f0..3a7624b 100644 --- a/devices/common/pci/pcidevice.cpp +++ b/devices/common/pci/pcidevice.cpp @@ -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: