summaryrefslogtreecommitdiff
path: root/dev/tsunami.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-05-14 17:39:32 -0400
committerAli Saidi <saidi@eecs.umich.edu>2004-05-14 17:39:32 -0400
commitaa14ee48649e4c885e4be9b2e6e40911d1ec3d17 (patch)
treeeab2e62a560a915e1bc71118c2ec814cef307b56 /dev/tsunami.cc
parentab9415a2bd608246501b33f5670d2a3ecc746dde (diff)
parentfd21387149c272b8aaee62466fe96863f3ef458f (diff)
downloadgem5-aa14ee48649e4c885e4be9b2e6e40911d1ec3d17.tar.xz
manual merge of linux_system and makefile
kern/linux/linux_system.cc: merged --HG-- extra : convert_revision : 81ef6a46f76968985f44c72f296a79ea77e73d12
Diffstat (limited to 'dev/tsunami.cc')
-rw-r--r--dev/tsunami.cc19
1 files changed, 16 insertions, 3 deletions
diff --git a/dev/tsunami.cc b/dev/tsunami.cc
index 252f9f1cc..8956ee557 100644
--- a/dev/tsunami.cc
+++ b/dev/tsunami.cc
@@ -37,6 +37,7 @@
#include "dev/tlaser_clock.hh"
#include "dev/tsunami_cchip.hh"
#include "dev/tsunami_pchip.hh"
+#include "dev/tsunami_io.hh"
#include "dev/tsunami.hh"
#include "dev/pciconfigall.hh"
#include "sim/builder.hh"
@@ -44,9 +45,9 @@
using namespace std;
-Tsunami::Tsunami(const string &name, System *s, SimConsole *con,
+Tsunami::Tsunami(const string &name, System *s,
IntrControl *ic, PciConfigAll *pci, int intr_freq)
- : Platform(name, con, ic, pci, intr_freq), system(s)
+ : Platform(name, ic, pci, intr_freq), system(s)
{
// set the back pointer from the system to myself
system->platform = this;
@@ -56,6 +57,18 @@ Tsunami::Tsunami(const string &name, System *s, SimConsole *con,
}
void
+Tsunami::postConsoleInt()
+{
+ io->postPIC(0x10);
+}
+
+void
+Tsunami::clearConsoleInt()
+{
+ io->clearPIC(0x10);
+}
+
+void
Tsunami::serialize(std::ostream &os)
{
SERIALIZE_ARRAY(intr_sum_type, Tsunami::Max_CPUs);
@@ -89,7 +102,7 @@ END_INIT_SIM_OBJECT_PARAMS(Tsunami)
CREATE_SIM_OBJECT(Tsunami)
{
- return new Tsunami(getInstanceName(), system, cons, intrctrl, pciconfig,
+ return new Tsunami(getInstanceName(), system, intrctrl, pciconfig,
interrupt_frequency);
}