1# Add TLB to x86 checkpoints
2def 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
17legacy_version = 6
18