summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-08-14 01:00:45 -0700
committerGabe Black <gblack@eecs.umich.edu>2010-08-14 01:00:45 -0700
commitc4ba6967a522df3b51a50017d8a5f2c47c382f57 (patch)
treef9bbeeb48724a976a6b59027ca4358daf8c9d5a1 /src
parent961aafc044b934ac0e5d1ffe51fc5f33813b052b (diff)
downloadgem5-c4ba6967a522df3b51a50017d8a5f2c47c382f57.tar.xz
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 (limited to 'src')
-rw-r--r--src/cpu/inorder/resources/cache_unit.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpu/inorder/resources/cache_unit.cc b/src/cpu/inorder/resources/cache_unit.cc
index 4d21f527e..67ee51743 100644
--- a/src/cpu/inorder/resources/cache_unit.cc
+++ b/src/cpu/inorder/resources/cache_unit.cc
@@ -47,6 +47,7 @@ using namespace std;
using namespace TheISA;
using namespace ThePipeline;
+#if TRACING_ON
static std::string
printMemData(uint8_t *data, unsigned size)
{
@@ -56,6 +57,7 @@ printMemData(uint8_t *data, unsigned size)
}
return dataStr.str();
}
+#endif
Tick
CacheUnit::CachePort::recvAtomic(PacketPtr pkt)