summaryrefslogtreecommitdiff
path: root/dev/platform.hh
diff options
context:
space:
mode:
Diffstat (limited to 'dev/platform.hh')
-rw-r--r--dev/platform.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/dev/platform.hh b/dev/platform.hh
index 1ee645454..f149ca2fb 100644
--- a/dev/platform.hh
+++ b/dev/platform.hh
@@ -41,6 +41,7 @@ class PciConfigAll;
class IntrControl;
class SimConsole;
class Uart;
+class System;
class Platform : public SimObject
{
@@ -54,9 +55,13 @@ class Platform : public SimObject
/** Pointer to the UART, set by the uart */
Uart *uart;
+ /** Pointer to the system for info about the memory system. */
+ System *system;
+
public:
- Platform(const std::string &name, IntrControl *intctrl, PciConfigAll *pci);
+ Platform(const std::string &name, IntrControl *intctrl);
virtual ~Platform();
+ virtual void init() { if (pciconfig == NULL) panic("PCI Config not set"); }
virtual void postConsoleInt() = 0;
virtual void clearConsoleInt() = 0;
virtual Tick intrFrequency() = 0;