From 5346680758eaaba9e4bc473b5a798a0a29ef8551 Mon Sep 17 00:00:00 2001 From: Rose Thompson Date: Tue, 12 Nov 2024 17:52:16 -0600 Subject: [PATCH] Final code cleanup. --- bin/CacheSim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/CacheSim.py b/bin/CacheSim.py index 5a2499a87..57a05019f 100755 --- a/bin/CacheSim.py +++ b/bin/CacheSim.py @@ -94,7 +94,7 @@ class Cache: line.dirty = 0 line.valid = 0 - def cboclean(self, addr, invalidate): + def cbo(self, addr, invalidate): tag, setnum, _ = self.splitaddr(addr) for waynum in range(self.numways): line = self.ways[waynum][setnum] @@ -263,7 +263,7 @@ def main(): elif lninfo[1] == 'V' or lninfo[1] == 'L' or lninfo[1] == 'C': addr = int(lninfo[0], 16) IsCBOClean = lninfo[1] != 'C' - cache.cboclean(addr, IsCBOClean) + cache.cbo(addr, IsCBOClean) if args.verbose: print(lninfo[1]); else: