More code cleanup for CacheSim.py

This commit is contained in:
Rose Thompson 2024-11-13 10:45:33 -06:00
parent 77d47e531f
commit db3a7d5bbd

View File

@ -85,15 +85,7 @@ class Cache:
for line in way:
line.dirty = False
# invalidate this specific line
def cboinvalidate(self, addr):
tag, setnum, _ = self.splitaddr(addr)
for waynum in range(self.numways):
line = self.ways[waynum][setnum]
if line.tag == tag and line.valid:
line.dirty = 0
line.valid = 0
# access a cbo type instruction
def cbo(self, addr, invalidate):
tag, setnum, _ = self.splitaddr(addr)
for waynum in range(self.numways):