Sign in
gem5
/
public
/
gem5
/
8a11b39c41353ec5345250a0ca370b89d14e97bd
/
.
/
util
/
cpt_upgraders
/
cpu-pid.py
blob: 232b9ea49128e04dc292d15642680a929087ea42 [
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