The command executed was `black src configs tests util`. Change-Id: I8dfaa6ab04658fea37618127d6ac19270028d771 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/47024 Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
20 lines
549 B
Python
20 lines
549 B
Python
# Add TLB to x86 checkpoints
|
|
def upgrader(cpt):
|
|
if cpt.get("root", "isa", fallback="") == "x86":
|
|
for sec in cpt.sections():
|
|
import re
|
|
|
|
# Search for all ISA sections
|
|
if re.search(".*sys.*\.cpu.*\.dtb$", sec):
|
|
cpt.set(sec, "_size", "0")
|
|
cpt.set(sec, "lruSeq", "0")
|
|
|
|
if re.search(".*sys.*\.cpu.*\.itb$", sec):
|
|
cpt.set(sec, "_size", "0")
|
|
cpt.set(sec, "lruSeq", "0")
|
|
else:
|
|
print("ISA is not x86")
|
|
|
|
|
|
legacy_version = 6
|