summaryrefslogtreecommitdiff
path: root/dev/platform.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-05-14 17:34:15 -0400
committerAli Saidi <saidi@eecs.umich.edu>2004-05-14 17:34:15 -0400
commitfd21387149c272b8aaee62466fe96863f3ef458f (patch)
treee7029f7536b5374fc0fb5a9688d8d1a2b5a816b3 /dev/platform.hh
parentcd8db7669aefe1075c9ded5e6cc3203593698880 (diff)
downloadgem5-fd21387149c272b8aaee62466fe96863f3ef458f.tar.xz
Linux boots... various fixes to make console work correctly
dev/console.cc: commented out code that checks if an interrupt is happening before issuing one because they can get lost when linux boots dev/console.hh: added a setPlatform function to set the platform to interrupt dev/platform.hh: dev/tsunami.cc: dev/tsunami.hh: Added virtual functions to post console interrupts dev/tsunami_io.cc: allowed a 64bit read of the PIC since we can't do a physical byte read dev/tsunami_uart.cc: moved TsunamiUart to PioDevice various little fixes to make linux work dev/tsunami_uart.hh: Made Tsunami_Uart a PIO device dev/tsunamireg.h: added some UART defines and used the ULL macros kern/linux/linux_system.cc: commented out waiting for gdb --HG-- extra : convert_revision : 8cfd0700f3812ab349a6d7f132f85f4f421c5c5e
Diffstat (limited to 'dev/platform.hh')
-rw-r--r--dev/platform.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/dev/platform.hh b/dev/platform.hh
index db6a489ad..407f58406 100644
--- a/dev/platform.hh
+++ b/dev/platform.hh
@@ -53,10 +53,13 @@ class Platform : public SimObject
int interrupt_frequency;
public:
- Platform(const std::string &name, SimConsole *con, IntrControl *intctrl,
+ Platform(const std::string &name, IntrControl *intctrl,
PciConfigAll *pci, int intrFreq)
- : SimObject(name), intrctrl(intctrl), cons(con), pciconfig(pci),
+ : SimObject(name), intrctrl(intctrl), pciconfig(pci),
interrupt_frequency(intrFreq) {}
+ virtual ~Platform() {}
+ virtual void postConsoleInt() = 0;
+ virtual void clearConsoleInt() = 0;
};
#endif // __PLATFORM_HH_