summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2005-03-14 11:16:27 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2005-03-14 11:16:27 -0500
commit81169916aa2fb37536c8ae841424ac8640e1e0e1 (patch)
tree121543d3ea985ffcc1f6ce0b3bcab1c8711b0756 /dev
parentb12f9321ff10468eea568dd1ef431fe47c925e41 (diff)
downloadgem5-81169916aa2fb37536c8ae841424ac8640e1e0e1.tar.xz
print the daddr to pciconfigall DPRINTF.
--HG-- extra : convert_revision : d13ce459d5dac026e596f0bb3ba801b1dbed9ed0
Diffstat (limited to 'dev')
-rw-r--r--dev/pciconfigall.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/dev/pciconfigall.cc b/dev/pciconfigall.cc
index 1a9804f79..2cbd5adc0 100644
--- a/dev/pciconfigall.cc
+++ b/dev/pciconfigall.cc
@@ -98,11 +98,12 @@ PciConfigAll::startup()
Fault
PciConfigAll::read(MemReqPtr &req, uint8_t *data)
{
- DPRINTF(PciConfigAll, "read va=%#x size=%d\n",
- req->vaddr, req->size);
Addr daddr = (req->paddr - (addr & EV5::PAddrImplMask));
+ DPRINTF(PciConfigAll, "read va=%#x da=%#x size=%d\n",
+ req->vaddr, daddr, req->size);
+
int device = (daddr >> 11) & 0x1F;
int func = (daddr >> 8) & 0x7;
int reg = daddr & 0xFF;