projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b12f932
)
print the daddr to pciconfigall DPRINTF.
author
Lisa Hsu
<hsul@eecs.umich.edu>
Mon, 14 Mar 2005 16:16:27 +0000
(11:16 -0500)
committer
Lisa Hsu
<hsul@eecs.umich.edu>
Mon, 14 Mar 2005 16:16:27 +0000
(11:16 -0500)
--HG--
extra : convert_revision :
d13ce459d5dac026e596f0bb3ba801b1dbed9ed0
dev/pciconfigall.cc
patch
|
blob
|
history
diff --git
a/dev/pciconfigall.cc
b/dev/pciconfigall.cc
index 1a9804f795969858ddc103fc4e284dcd09d7c9b8..2cbd5adc0466ec54b399237304c8363f15eebbe3 100644
(file)
--- 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;