From: Steve Reinhardt Date: Mon, 28 Aug 2006 17:34:15 +0000 (-0700) Subject: Get rid of unused BARAddrs[] in PciConfigData object. X-Git-Tag: m5_2.0_beta2~139 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19d51452b1d4809de31702a7132cfba53af9dfd2;p=gem5.git Get rid of unused BARAddrs[] in PciConfigData object. --HG-- extra : convert_revision : a82e05326ca6150c70cb288b28f9f6eee89ad93d --- diff --git a/src/dev/pcidev.cc b/src/dev/pcidev.cc index 1cd018ea2..9e6d5cd37 100644 --- a/src/dev/pcidev.cc +++ b/src/dev/pcidev.cc @@ -116,10 +116,11 @@ PciDev::PciDev(Params *p) if (configData) { memcpy(config.data, configData->config.data, sizeof(config.data)); memcpy(BARSize, configData->BARSize, sizeof(BARSize)); - memcpy(BARAddrs, configData->BARAddrs, sizeof(BARAddrs)); } else panic("NULL pointer to configuration data"); + memset(BARAddrs, 0, sizeof(BARAddrs)); + plat->registerPciDevice(0, p->deviceNum, p->functionNum, letoh(configData->config.interruptLine)); } diff --git a/src/dev/pcidev.hh b/src/dev/pcidev.hh index ccc875d32..8e4f003b0 100644 --- a/src/dev/pcidev.hh +++ b/src/dev/pcidev.hh @@ -62,7 +62,6 @@ class PciConfigData : public SimObject : SimObject(name) { memset(config.data, 0, sizeof(config.data)); - memset(BARAddrs, 0, sizeof(BARAddrs)); memset(BARSize, 0, sizeof(BARSize)); } @@ -71,9 +70,6 @@ class PciConfigData : public SimObject /** The size of the BARs */ uint32_t BARSize[6]; - - /** The addresses of the BARs */ - Addr BARAddrs[6]; };