diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2004-05-14 17:34:15 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2004-05-14 17:34:15 -0400 |
commit | fd21387149c272b8aaee62466fe96863f3ef458f (patch) | |
tree | e7029f7536b5374fc0fb5a9688d8d1a2b5a816b3 /dev/console.hh | |
parent | cd8db7669aefe1075c9ded5e6cc3203593698880 (diff) | |
download | gem5-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/console.hh')
-rw-r--r-- | dev/console.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dev/console.hh b/dev/console.hh index d2bba4612..703d05d51 100644 --- a/dev/console.hh +++ b/dev/console.hh @@ -103,6 +103,8 @@ class SimConsole : public SimObject // interrupt handle IntrControl *intr; + // Platform so we can post interrupts + Platform *platform; public: ///////////////// @@ -143,6 +145,8 @@ class SimConsole : public SimObject void initInt(IntrControl *i); void setInt(int bits); + void setPlatform(Platform *p); + virtual void serialize(std::ostream &os); virtual void unserialize(Checkpoint *cp, const std::string §ion); }; |