diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-03-29 17:37:41 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-03-29 17:37:41 -0500 |
commit | 35faf09bcce4eaac5d6899d7e371b2506d1b256f (patch) | |
tree | ad93a7953130d4be1e911a469452b7f8e3f5ee6a /dev/alpha_console.hh | |
parent | d46d3d6811822d218c137cd6d991e6b4981811d6 (diff) | |
parent | 62f5d7dd3ffbbb33e8371af589eaa69280bd017a (diff) | |
download | gem5-35faf09bcce4eaac5d6899d7e371b2506d1b256f.tar.xz |
Merge zizzer:/bk/newmem
into zeep.eecs.umich.edu:/z/saidi/work/m5.newmem
--HG--
extra : convert_revision : 5ab4ce9f6ec7af326d8906060ae3558cfd67ca08
Diffstat (limited to 'dev/alpha_console.hh')
-rw-r--r-- | dev/alpha_console.hh | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/dev/alpha_console.hh b/dev/alpha_console.hh index f63c6ad7e..6f3ea15a6 100644 --- a/dev/alpha_console.hh +++ b/dev/alpha_console.hh @@ -70,7 +70,7 @@ class MemoryController; * primarily used doing boot before the kernel has loaded its device * drivers. */ -class AlphaConsole : public PioDevice +class AlphaConsole : public BasePioDevice { protected: struct Access : public AlphaAccess @@ -96,23 +96,29 @@ class AlphaConsole : public PioDevice /** a pointer to the CPU boot cpu */ BaseCPU *cpu; - Addr addr; - static const Addr size = sizeof(struct AlphaAccess); + public: + struct Params : public BasePioDevice::Params + { + SimConsole *cons; + SimpleDisk *disk; + AlphaSystem *sys; + BaseCpu *cpu; + }; + protected: + const Params *params() const {return (const Params *)_params; } public: + /** Standard Constructor */ - AlphaConsole(const std::string &name, SimConsole *cons, SimpleDisk *d, - AlphaSystem *s, BaseCPU *c, Platform *platform, - MemoryController *mmu, Addr addr, - HierParams *hier, Bus *pio_bus); + AlphaConsole(Params *p); virtual void startup(); /** * memory mapped reads and writes */ - virtual Fault read(MemReqPtr &req, uint8_t *data); - virtual Fault write(MemReqPtr &req, const uint8_t *data); + virtual Tick read(Packet &pkt); + virtual Tick write(Packet &pkt); /** * standard serialization routines for checkpointing |