From 63248b0fa26f01f9d56bdcde4baf0e7f0228dcd1 Mon Sep 17 00:00:00 2001 From: joevt Date: Mon, 22 Aug 2022 00:35:35 -0700 Subject: [PATCH] Set Bandit's HWComponent name Bandit has two names: - PCIDevice->pci_name - PCIDevice:MMIODevice:HWComponent->name The latter was not being set. --- devices/common/pci/bandit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devices/common/pci/bandit.cpp b/devices/common/pci/bandit.cpp index 8c4d4de..9516046 100644 --- a/devices/common/pci/bandit.cpp +++ b/devices/common/pci/bandit.cpp @@ -63,6 +63,8 @@ Bandit::Bandit(int bridge_num, std::string name) : PCIHost(), PCIDevice(name) // that correspond to the 32MB assigned PCI address space of this Bandit. // This initialization is implied by the device functionality. this->addr_mask = 3 << ((bridge_num & 3) * 2); + + this->name = name; } uint32_t Bandit::pci_cfg_read(uint32_t reg_offs, uint32_t size)