diff options
author | Andrew Schultz <alschult@umich.edu> | 2004-02-09 17:50:47 -0500 |
---|---|---|
committer | Andrew Schultz <alschult@umich.edu> | 2004-02-09 17:50:47 -0500 |
commit | eac2d6a66863dcd7d5129ee5112ea49248f9efa8 (patch) | |
tree | d59508dd612d82b80fef69ded188e2704e074d40 /dev/alpha_console.hh | |
parent | 48bb27be728db65ad521eb5bda8cb3411dfddc43 (diff) | |
parent | da8a7022126eef87d4007b7135aa89c559eb6747 (diff) | |
download | gem5-eac2d6a66863dcd7d5129ee5112ea49248f9efa8.tar.xz |
Merge linux tree with head
arch/alpha/alpha_memory.cc:
dev/alpha_console.cc:
dev/alpha_console.hh:
Merge
--HG--
extra : convert_revision : 3233648f204338ab3f102ff117754dce955dcc37
Diffstat (limited to 'dev/alpha_console.hh')
-rw-r--r-- | dev/alpha_console.hh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/dev/alpha_console.hh b/dev/alpha_console.hh index 4647be538..29ebec1bb 100644 --- a/dev/alpha_console.hh +++ b/dev/alpha_console.hh @@ -33,9 +33,10 @@ #ifndef __ALPHA_CONSOLE_HH__ #define __ALPHA_CONSOLE_HH__ -#include "sim/host.hh" +#include "base/range.hh" #include "dev/alpha_access.h" -#include "mem/functional_mem/mmap_device.hh" +#include "mem/functional_mem/functional_memory.hh" +#include "sim/host.hh" #include "dev/tsunami_io.hh" class BaseCPU; @@ -69,7 +70,7 @@ class SimpleDisk; * primarily used doing boot before the kernel has loaded its device * drivers. */ -class AlphaConsole : public MmapDevice +class AlphaConsole : public FunctionalMemory { protected: union { @@ -83,6 +84,9 @@ class AlphaConsole : public MmapDevice /** the system console (the terminal) is accessable from the console */ SimConsole *console; + Addr addr; + static const Addr size = 0x80; // equal to sizeof(alpha_access); + public: /** Standard Constructor */ AlphaConsole(const std::string &name, SimConsole *cons, @@ -91,7 +95,6 @@ class AlphaConsole : public MmapDevice TsunamiIO *clock, int num_cpus, Addr addr, Addr mask, MemoryController *mmu); - public: /** * memory mapped reads and writes */ |