diff options
author | Andrew Schultz <alschult@umich.edu> | 2004-02-10 22:35:18 -0500 |
---|---|---|
committer | Andrew Schultz <alschult@umich.edu> | 2004-02-10 22:35:18 -0500 |
commit | e72e8b28c8579f56b36b89f1b6cbfba169202f1e (patch) | |
tree | 50608e364cd77ec54f5730f140652563f4ff221a /dev/tsunami_io.cc | |
parent | f7c4d57260d1ce43089a3a8e05915be782912632 (diff) | |
download | gem5-e72e8b28c8579f56b36b89f1b6cbfba169202f1e.tar.xz |
Fix masking of read/write address to get read/write offset
Changed base_linux.ini file to use physical addresses
dev/alpha_console.cc:
dev/pciconfigall.cc:
dev/tsunami_cchip.cc:
dev/tsunami_io.cc:
dev/tsunami_pchip.cc:
Fix masking of read/write address to get read/write offset
dev/tsunami_uart.cc:
Fix masking of read/write address to get read/write offset
Also added add_child call that was missed
dev/tsunami_uart.hh:
Changed size to 0x8
--HG--
extra : convert_revision : 1468ca43167bfb28b28c4510401a1ebad683e102
Diffstat (limited to 'dev/tsunami_io.cc')
-rw-r--r-- | dev/tsunami_io.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/tsunami_io.cc b/dev/tsunami_io.cc index dd2ac3acc..15727631b 100644 --- a/dev/tsunami_io.cc +++ b/dev/tsunami_io.cc @@ -153,7 +153,7 @@ TsunamiIO::read(MemReqPtr &req, uint8_t *data) DPRINTF(Tsunami, "io read va=%#x size=%d IOPorrt=%#x\n", req->vaddr, req->size, req->vaddr & 0xfff); - Addr daddr = (req->paddr & size); + Addr daddr = (req->paddr - (addr & PA_IMPL_MASK)); // ExecContext *xc = req->xc; // int cpuid = xc->cpu_id; @@ -228,7 +228,7 @@ TsunamiIO::write(MemReqPtr &req, const uint8_t *data) DPRINTF(Tsunami, "io write - va=%#x size=%d IOPort=%#x Data=%#x\n", req->vaddr, req->size, req->vaddr & 0xfff, dt64); - Addr daddr = (req->paddr & size); + Addr daddr = (req->paddr - (addr & PA_IMPL_MASK)); switch(req->size) { case sizeof(uint8_t): |