projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Major changes to how SimObjects are created and initialized. Almost all
[gem5.git]
/
src
/
dev
/
alpha
/
tsunami_pchip.hh
diff --git
a/src/dev/alpha/tsunami_pchip.hh
b/src/dev/alpha/tsunami_pchip.hh
index 1632a36d45b913ba540232ec6ccdd33ba34f7c55..53050565f47971440bb4b88b7090662dfb6e14c1 100644
(file)
--- a/
src/dev/alpha/tsunami_pchip.hh
+++ b/
src/dev/alpha/tsunami_pchip.hh
@@
-35,9
+35,10
@@
#ifndef __TSUNAMI_PCHIP_HH__
#define __TSUNAMI_PCHIP_HH__
#ifndef __TSUNAMI_PCHIP_HH__
#define __TSUNAMI_PCHIP_HH__
-#include "dev/alpha/tsunami.hh"
#include "base/range.hh"
#include "base/range.hh"
+#include "dev/alpha/tsunami.hh"
#include "dev/io_device.hh"
#include "dev/io_device.hh"
+#include "params/TsunamiPChip.hh"
/**
* A very simple implementation of the Tsunami PCI interface chips.
/**
* A very simple implementation of the Tsunami PCI interface chips.
@@
-61,19
+62,18
@@
class TsunamiPChip : public BasicPioDevice
uint64_t tba[4];
public:
uint64_t tba[4];
public:
- struct Params : public BasicPioDevice::Params
- {
- Tsunami *tsunami;
- };
- protected:
- const Params *params() const { return (const Params*)_params; }
-
- public:
+ typedef TsunamiPChipParams Params;
/**
* Register the PChip with the mmu and init all wsba, wsm, and tba to 0
* @param p pointer to the parameters struct
*/
/**
* Register the PChip with the mmu and init all wsba, wsm, and tba to 0
* @param p pointer to the parameters struct
*/
- TsunamiPChip(Params *p);
+ TsunamiPChip(const Params *p);
+
+ const Params *
+ params() const
+ {
+ return dynamic_cast<const Params *>(_params);
+ }
/**
* Translate a PCI bus address to a memory address for DMA.
/**
* Translate a PCI bus address to a memory address for DMA.