print the daddr to pciconfigall DPRINTF.

--HG--
extra : convert_revision : d13ce459d5dac026e596f0bb3ba801b1dbed9ed0
This commit is contained in:
Lisa Hsu 2005-03-14 11:16:27 -05:00
parent b12f9321ff
commit 81169916aa

View file

@ -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;