diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2004-01-30 15:24:50 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2004-01-30 15:24:50 -0500 |
commit | 0035440536e4c275d73fd3bb516f46d0d2df1f6b (patch) | |
tree | ef2b57e4b49edc8b98f0172c09cc00d7d8ad7af5 /dev/tsunami_io.cc | |
parent | 00c49783ef406aaee227aff10624da9feeeb8ce8 (diff) | |
download | gem5-0035440536e4c275d73fd3bb516f46d0d2df1f6b.tar.xz |
Linux boots with no devices
dev/tsunami.hh:
Started commenting code
dev/tsunami_cchip.cc:
removed unneccessary config files
dev/tsunami_io.cc:
Added code to see the value written
dev/tsunami_uart.cc:
conviently one of the addresses the SuperI/O southbridge can be is the same space
as the UART. This stops the simulator from panicing although it should probably be
changed a bit.
--HG--
extra : convert_revision : a3334a2c418ee8228089d0e1791fa78bbb276fe5
Diffstat (limited to 'dev/tsunami_io.cc')
-rw-r--r-- | dev/tsunami_io.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dev/tsunami_io.cc b/dev/tsunami_io.cc index cfa91a67d..c6447cf64 100644 --- a/dev/tsunami_io.cc +++ b/dev/tsunami_io.cc @@ -194,8 +194,11 @@ TsunamiIO::read(MemReqPtr req, uint8_t *data) Fault TsunamiIO::write(MemReqPtr req, const uint8_t *data) { - DPRINTF(Tsunami, "io write - va=%#x size=%d IOPort=%#x\n", - req->vaddr, req->size, req->vaddr & 0xfff); + uint8_t dt = *(uint8_t*)data; + uint64_t dt64 = dt; + + 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 & addr_mask); |