summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-02-20 23:53:14 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-02-20 23:53:14 -0500
commitc22664845900727493097e961d2bc17fd9c60372 (patch)
tree3da4d9a4c0f6e544220c45d207fbbc25e76eb8e0
parent7c642b710679f01d4ec43e6562dd854180dd8c41 (diff)
downloadgem5-c22664845900727493097e961d2bc17fd9c60372.tar.xz
Finished the implementing the change of the ISA from a class to a namespace
dev/sinic.cc: When DPRINTF disappears, reg32 becomes an unused variable. With -Werror, this causes the compile to fail. --HG-- extra : convert_revision : c003c714228491e060155070d192521c53d9e929
-rw-r--r--dev/sinic.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/sinic.cc b/dev/sinic.cc
index 829d58d32..6ffd0a664 100644
--- a/dev/sinic.cc
+++ b/dev/sinic.cc
@@ -494,11 +494,11 @@ Device::writeBar0(MemReqPtr &req, Addr daddr, const uint8_t *data)
panic("invalid size for %s: cpu=%d da=%#x pa=%#x va=%#x size=%d",
info.name, cpu, daddr, req->paddr, req->vaddr, req->size);
- uint32_t reg32 = *(uint32_t *)data;
+ //uint32_t reg32 = *(uint32_t *)data;
uint64_t reg64 = *(uint64_t *)data;
DPRINTF(EthernetPIO,
"write %s: cpu=%d val=%#x da=%#x pa=%#x va=%#x size=%d\n",
- info.name, cpu, info.size == 4 ? reg32 : reg64, daddr,
+ info.name, cpu, info.size == 4 ? (*(uint32_t *)data) : reg64, daddr,
req->paddr, req->vaddr, req->size);
prepareWrite(cpu, index);