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_pchip.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_pchip.cc')
-rw-r--r-- | dev/tsunami_pchip.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/tsunami_pchip.cc b/dev/tsunami_pchip.cc index b67bd476d..59e085361 100644 --- a/dev/tsunami_pchip.cc +++ b/dev/tsunami_pchip.cc @@ -52,7 +52,7 @@ TsunamiPChip::read(MemReqPtr &req, uint8_t *data) DPRINTF(Tsunami, "read va=%#x size=%d\n", req->vaddr, req->size); - Addr daddr = (req->paddr & size) >> 6; + Addr daddr = (req->paddr - (addr & PA_IMPL_MASK)) >> 6; // ExecContext *xc = req->xc; // int cpuid = xc->cpu_id; @@ -142,7 +142,7 @@ TsunamiPChip::write(MemReqPtr &req, const uint8_t *data) DPRINTF(Tsunami, "write - va=%#x size=%d \n", req->vaddr, req->size); - Addr daddr = (req->paddr & size) >> 6; + Addr daddr = (req->paddr - (addr & PA_IMPL_MASK)) >> 6; switch (req->size) { |