X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=dev%2Fplatform.hh;h=db6a489ad656a4e29d8c2a613a645724f775a96b;hb=8538ffdb3682d71c90c33b92b436a2d9cbdc42c3;hp=4425570f2f889cb174158cf4d10c57114da767b1;hpb=6391bfac543921e49469d74ea58de644d7a8f7cc;p=gem5.git diff --git a/dev/platform.hh b/dev/platform.hh index 4425570f2..db6a489ad 100644 --- a/dev/platform.hh +++ b/dev/platform.hh @@ -36,6 +36,7 @@ #include "sim/sim_object.hh" +class PciConfigAll; class IntrControl; class SimConsole; @@ -46,13 +47,15 @@ class Platform : public SimObject IntrControl *intrctrl; /** Pointer to the simulation console */ SimConsole *cons; + /** Pointer to the PCI configuration space */ + PciConfigAll *pciconfig; int interrupt_frequency; public: Platform(const std::string &name, SimConsole *con, IntrControl *intctrl, - int intrFreq) - : SimObject(name), intrctrl(intctrl), cons(con), + PciConfigAll *pci, int intrFreq) + : SimObject(name), intrctrl(intctrl), cons(con), pciconfig(pci), interrupt_frequency(intrFreq) {} };