diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-03-29 17:40:09 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-03-29 17:40:09 -0500 |
commit | 2177d822ce1eecffb685f13468412c99b1e59ecd (patch) | |
tree | 4ae56528a80dcffacda85b6e4a1c5602c6f19652 /dev/alpha_console.hh | |
parent | 1e4e989b8396b9f4f322fb27bbfa1cf9e2007334 (diff) | |
parent | 3dcb589ea46290ecfe2c2e54ebf2ba8921a932ed (diff) | |
download | gem5-2177d822ce1eecffb685f13468412c99b1e59ecd.tar.xz |
Merge m5.eecs.umich.edu:/bk/newmem
into ewok.(none):/home/gblack/m5/newmem
--HG--
extra : convert_revision : 7866241cf43416636cbd6a3a4f6eeda561ed2e27
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 |