changeset 9cf2327b7f5d in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=9cf2327b7f5d
description:
O3/Ozone: Eliminate dead code counting software prefetch insts
Eliminates dead code in the O3 and Ozone CPU models that counted
software prefetch instructions separately for the ALPHA ISA only.
diffstat:
src/cpu/o3/commit_impl.hh | 13 -------------
src/cpu/o3/iew_impl.hh | 10 ----------
src/cpu/ozone/back_end_impl.hh | 10 ----------
src/cpu/ozone/lw_back_end_impl.hh | 10 ----------
4 files changed, 0 insertions(+), 43 deletions(-)
diffs (89 lines):
diff -r 2e38fd9937a9 -r 9cf2327b7f5d src/cpu/o3/commit_impl.hh
--- a/src/cpu/o3/commit_impl.hh Fri Mar 09 09:59:28 2012 -0500
+++ b/src/cpu/o3/commit_impl.hh Fri Mar 09 09:59:28 2012 -0500
@@ -1365,22 +1365,9 @@
{
ThreadID tid = inst->threadNumber;
- //
- // Pick off the software prefetches
- //
-#ifdef TARGET_ALPHA
- if (inst->isDataPrefetch()) {
- statComSwp[tid]++;
- } else {
- if (!inst->isMicroop() || inst->isLastMicroop())
- instsCommitted[tid]++;
- opsCommitted[tid]++;
- }
-#else
if (!inst->isMicroop() || inst->isLastMicroop())
instsCommitted[tid]++;
opsCommitted[tid]++;
-#endif
//
// Control Instructions
diff -r 2e38fd9937a9 -r 9cf2327b7f5d src/cpu/o3/iew_impl.hh
--- a/src/cpu/o3/iew_impl.hh Fri Mar 09 09:59:28 2012 -0500
+++ b/src/cpu/o3/iew_impl.hh Fri Mar 09 09:59:28 2012 -0500
@@ -1614,17 +1614,7 @@
{
ThreadID tid = inst->threadNumber;
- //
- // Pick off the software prefetches
- //
-#ifdef TARGET_ALPHA
- if (inst->isDataPrefetch())
- iewExecutedSwp[tid]++;
- else
- iewIewExecutedcutedInsts++;
-#else
iewExecutedInsts++;
-#endif
#if TRACING_ON
inst->completeTick = curTick();
diff -r 2e38fd9937a9 -r 9cf2327b7f5d src/cpu/ozone/back_end_impl.hh
--- a/src/cpu/ozone/back_end_impl.hh Fri Mar 09 09:59:28 2012 -0500
+++ b/src/cpu/ozone/back_end_impl.hh Fri Mar 09 09:59:28 2012 -0500
@@ -1728,17 +1728,7 @@
{
ThreadID tid = inst->threadNumber;
- //
- // Pick off the software prefetches
- //
-#ifdef TARGET_ALPHA
- if (inst->isDataPrefetch())
- exe_swp[tid]++;
- else
- exe_inst[tid]++;
-#else
exe_inst[tid]++;
-#endif
//
// Control operations
diff -r 2e38fd9937a9 -r 9cf2327b7f5d src/cpu/ozone/lw_back_end_impl.hh
--- a/src/cpu/ozone/lw_back_end_impl.hh Fri Mar 09 09:59:28 2012 -0500
+++ b/src/cpu/ozone/lw_back_end_impl.hh Fri Mar 09 09:59:28 2012 -0500
@@ -1469,17 +1469,7 @@
{
ThreadID tid = inst->threadNumber;
- //
- // Pick off the software prefetches
- //
-#ifdef TARGET_ALPHA
- if (inst->isDataPrefetch())
- exeSwp[tid]++;
- else
- exeInst[tid]++;
-#else
exeInst[tid]++;
-#endif
//
// Control operations
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev