From db3a7d5bbda6705e9b4082c3b17a38f839580ad8 Mon Sep 17 00:00:00 2001 From: Rose Thompson Date: Wed, 13 Nov 2024 10:45:33 -0600 Subject: [PATCH] More code cleanup for CacheSim.py --- bin/CacheSim.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/bin/CacheSim.py b/bin/CacheSim.py index 57a05019f..2ac8b5461 100755 --- a/bin/CacheSim.py +++ b/bin/CacheSim.py @@ -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):