mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-22 20:44:28 +00:00
More code cleanup for CacheSim.py
This commit is contained in:
parent
77d47e531f
commit
db3a7d5bbd
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user