changeset 84fd1726290d in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=84fd1726290d
description:
Inorder: Fix compilation of m5.fast.
printMemData is only used in DPRINTFs. If those are removed by compiling
m5.fast, that function is unused, gcc generates a warning, that gets
turned
into an error, and the build fails. This change surrounds the function
definition with #if TRACING_ON so it only gets compiled in if the
DPRINTFs do
to.
diffstat:
src/cpu/inorder/resources/cache_unit.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r 3c48b2b3cb83 -r 84fd1726290d src/cpu/inorder/resources/cache_unit.cc
--- a/src/cpu/inorder/resources/cache_unit.cc Fri Aug 13 06:16:30 2010 -0700
+++ b/src/cpu/inorder/resources/cache_unit.cc Sat Aug 14 01:00:45 2010 -0700
@@ -47,6 +47,7 @@
using namespace TheISA;
using namespace ThePipeline;
+#if TRACING_ON
static std::string
printMemData(uint8_t *data, unsigned size)
{
@@ -56,6 +57,7 @@
}
return dataStr.str();
}
+#endif
Tick
CacheUnit::CachePort::recvAtomic(PacketPtr pkt)
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev