From e72e8b28c8579f56b36b89f1b6cbfba169202f1e Mon Sep 17 00:00:00 2001 From: Andrew Schultz Date: Tue, 10 Feb 2004 22:35:18 -0500 Subject: 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 --- dev/tsunami_pchip.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev/tsunami_pchip.cc') 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) { -- cgit v1.2.3