diff options
author | Andrew Schultz <alschult@umich.edu> | 2004-02-10 00:19:43 -0500 |
---|---|---|
committer | Andrew Schultz <alschult@umich.edu> | 2004-02-10 00:19:43 -0500 |
commit | 81d5ffe7dea641402a5e1b92448646f515f46677 (patch) | |
tree | 9334b2fac9632e8bf6a5879ead536f6bf3f99f17 /dev/tsunami_uart.hh | |
parent | eac2d6a66863dcd7d5129ee5112ea49248f9efa8 (diff) | |
download | gem5-81d5ffe7dea641402a5e1b92448646f515f46677.tar.xz |
Changed new linux stuff to work with new FunctionalMemory interface and
some sundry problems with new interface
dev/alpha_console.cc:
dev/alpha_console.hh:
dev/baddev.cc:
dev/baddev.hh:
dev/pciconfigall.cc:
dev/pciconfigall.hh:
dev/pcidev.cc:
dev/pcidev.hh:
dev/tsunami_cchip.cc:
dev/tsunami_cchip.hh:
dev/tsunami_io.cc:
dev/tsunami_io.hh:
dev/tsunami_pchip.cc:
dev/tsunami_pchip.hh:
dev/tsunami_uart.cc:
dev/tsunami_uart.hh:
Fixed to use new FunctionalMemory interface
--HG--
extra : convert_revision : bee98e6285d92f28fafacf919ab06eaf333a9b56
Diffstat (limited to 'dev/tsunami_uart.hh')
-rw-r--r-- | dev/tsunami_uart.hh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/dev/tsunami_uart.hh b/dev/tsunami_uart.hh index 02d2f4543..2beefc7ea 100644 --- a/dev/tsunami_uart.hh +++ b/dev/tsunami_uart.hh @@ -33,15 +33,19 @@ #ifndef __TSUNAMI_UART_HH__ #define __TSUNAMI_UART_HH__ -#include "mem/functional_mem/mmap_device.hh" +#include "mem/functional_mem/functional_memory.hh" class SimConsole; /* * Tsunami UART */ -class TsunamiUart : public MmapDevice +class TsunamiUart : public FunctionalMemory { + private: + Addr addr; + static const Addr size = 0xf; + protected: SimConsole *cons; int status_store; @@ -50,8 +54,8 @@ class TsunamiUart : public MmapDevice uint8_t IER; public: - TsunamiUart(const std::string &name, SimConsole *c, - Addr addr, Addr mask, MemoryController *mmu); + TsunamiUart(const std::string &name, SimConsole *c, Addr a, + MemoryController *mmu); Fault read(MemReqPtr &req, uint8_t *data); Fault write(MemReqPtr &req, const uint8_t *data); |