misc: Merged release-staging-v19.0.0.0 into develop
[gem5.git] / util / cpt_upgraders / x86-add-tlb.py
1 # Add TLB to x86 checkpoints
2 def upgrader(cpt):
3 if cpt.get('root','isa') == 'x86':
4 for sec in cpt.sections():
5 import re
6 # Search for all ISA sections
7 if re.search('.*sys.*\.cpu.*\.dtb$', sec):
8 cpt.set(sec, '_size', '0')
9 cpt.set(sec, 'lruSeq', '0')
10
11 if re.search('.*sys.*\.cpu.*\.itb$', sec):
12 cpt.set(sec, '_size', '0')
13 cpt.set(sec, 'lruSeq', '0')
14 else:
15 print "ISA is not x86"
16
17 legacy_version = 6