From d3683440923051607ae96974fb2bdc5783993bf4 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 4 Oct 2011 02:26:03 -0700 Subject: SE/FS: Put platform pointers in fewer objects. Not all objects need a platform pointer, and having one creates a dependence on their being a platform object. This change removes the platform pointer to from the base device object and moves it into subclasses that actually need it. --- src/dev/pcidev.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dev/pcidev.hh') diff --git a/src/dev/pcidev.hh b/src/dev/pcidev.hh index 5da8b2dfc..dae005a97 100644 --- a/src/dev/pcidev.hh +++ b/src/dev/pcidev.hh @@ -149,7 +149,7 @@ class PciDev : public DmaDevice } protected: - Platform *plat; + Platform *platform; Tick pioDelay; Tick configDelay; PciConfigPort *configPort; @@ -173,15 +173,15 @@ class PciDev : public DmaDevice public: Addr pciToDma(Addr pciAddr) const - { return plat->pciToDma(pciAddr); } + { return platform->pciToDma(pciAddr); } void intrPost() - { plat->postPciInt(letoh(config.interruptLine)); } + { platform->postPciInt(letoh(config.interruptLine)); } void intrClear() - { plat->clearPciInt(letoh(config.interruptLine)); } + { platform->clearPciInt(letoh(config.interruptLine)); } uint8_t interruptLine() -- cgit v1.2.3