summaryrefslogtreecommitdiff
path: root/dev/tsunami.hh
diff options
context:
space:
mode:
authorAndrew Schultz <alschult@umich.edu>2004-02-09 14:47:39 -0500
committerAndrew Schultz <alschult@umich.edu>2004-02-09 14:47:39 -0500
commit581a6ea0dd60496c1e1285e1d8345313a3e37f3a (patch)
treee5baeed4b148e6248ebe028da0cbcd4373614bd9 /dev/tsunami.hh
parentb93cab4e858ef1fe48aeb7d7099cf8d519a99d31 (diff)
downloadgem5-581a6ea0dd60496c1e1285e1d8345313a3e37f3a.tar.xz
Fixes for updating mmu mappings
dev/tsunami.hh: Added generic platform base class --HG-- extra : convert_revision : ff74956937f9fca5bdfa5e3779add776e4a91f8b
Diffstat (limited to 'dev/tsunami.hh')
-rw-r--r--dev/tsunami.hh22
1 files changed, 9 insertions, 13 deletions
diff --git a/dev/tsunami.hh b/dev/tsunami.hh
index 4edf2113a..ef27ff18e 100644
--- a/dev/tsunami.hh
+++ b/dev/tsunami.hh
@@ -35,17 +35,16 @@
#ifndef __TSUNAMI_HH__
#define __TSUNAMI_HH__
-#include "sim/sim_object.hh"
+#include "dev/platform.hh"
-class IntrControl;
-class ConsoleListener;
-class SimConsole;
class AdaptecController;
class TlaserClock;
class EtherDev;
class TsunamiCChip;
class TsunamiPChip;
+class TsunamiIO;
class PCIConfigAll;
+class System;
/**
* Top level class for Tsunami Chipset emulation.
@@ -54,18 +53,17 @@ class PCIConfigAll;
* read work
*/
-class Tsunami : public SimObject
+class Tsunami : public Platform
{
public:
/** Max number of CPUs in a Tsunami */
static const int Max_CPUs = 4;
- /** Pointer to the interrupt controller (used to post and ack interrupts on the CPU) */
- IntrControl *intrctrl;
- /** Pointer to the UART emulation code */
- SimConsole *cons;
-
+ /** Pointer to the system */
+ System *system;
+ /** Pointer to the TsunamiIO device which has the RTC */
+ TsunamiIO *io;
/** Pointer to the SCSI controller device */
AdaptecController *scsi;
/** Pointer to the ethernet controller device */
@@ -92,8 +90,6 @@ class Tsunami : public SimObject
int intr_sum_type[Tsunami::Max_CPUs];
int ipi_pending[Tsunami::Max_CPUs];
- int interrupt_frequency;
-
public:
/**
* Constructor for the Tsunami Class.
@@ -102,7 +98,7 @@ class Tsunami : public SimObject
* @param intrcontrol pointer to the interrupt controller
* @param intrFreq frequency that interrupts happen
*/
- Tsunami(const std::string &name, EtherDev *ethernet, SimConsole *con,
+ Tsunami(const std::string &name, System *s, SimConsole *con,
IntrControl *intctrl, int intrFreq);
virtual void serialize(std::ostream &os);