Sign in
gem5
/
testing
/
jenkins-gem5-prod
/
5e55ecc4b5b59641c4edad3593f59ab5178e1bc2
/
.
/
util
/
cpt_upgraders
/
cpu-pid.py
blob: 4daf3742a8bda718b9a3b3e2e7114e65d0eacc17 [
file
] [
log
] [
blame
]
def
upgrader
(
cpt
):
for
sec
in
cpt
.
sections
():
import
re
# Search for a CPUs
if
re
.
search
(
'.*sys.*cpu'
,
sec
):
try
:
junk
=
cpt
.
get
(
sec
,
'instCnt'
)
cpt
.
set
(
sec
,
'_pid'
,
'0'
)
except
ConfigParser
.
NoOptionError
:
pass
legacy_version
=
3