summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2013-01-12 22:11:16 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2013-01-12 22:11:16 -0600
commitf7c0ba406e88a0e6751ef0058f520f0405a97b52 (patch)
treed6878a279f7ef22a30b6e7eed7abead2f0a1487c /src
parent25ec278a0be5e3e09d396ef5be993e45b766790b (diff)
downloadgem5-f7c0ba406e88a0e6751ef0058f520f0405a97b52.tar.xz
base simple cpu: removes commented out code about cache ops
Diffstat (limited to 'src')
-rw-r--r--src/cpu/simple/base.cc35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc
index 4db1c6c10..012a49253 100644
--- a/src/cpu/simple/base.cc
+++ b/src/cpu/simple/base.cc
@@ -521,38 +521,3 @@ BaseSimpleCPU::startup()
BaseCPU::startup();
thread->startup();
}
-
-/*Fault
-BaseSimpleCPU::CacheOp(uint8_t Op, Addr EffAddr)
-{
- // translate to physical address
- Fault fault = NoFault;
- int CacheID = Op & 0x3; // Lower 3 bits identify Cache
- int CacheOP = Op >> 2; // Upper 3 bits identify Cache Operation
- if(CacheID > 1)
- {
- warn("CacheOps not implemented for secondary/tertiary caches\n");
- }
- else
- {
- switch(CacheOP)
- { // Fill Packet Type
- case 0: warn("Invalidate Cache Op\n");
- break;
- case 1: warn("Index Load Tag Cache Op\n");
- break;
- case 2: warn("Index Store Tag Cache Op\n");
- break;
- case 4: warn("Hit Invalidate Cache Op\n");
- break;
- case 5: warn("Fill/Hit Writeback Invalidate Cache Op\n");
- break;
- case 6: warn("Hit Writeback\n");
- break;
- case 7: warn("Fetch & Lock Cache Op\n");
- break;
- default: warn("Unimplemented Cache Op\n");
- }
- }
- return fault;
-}*/