Sign in
gem5
/
public
/
gem5
/
387fc6964e27d085acaf15628045734875b7a0eb
/
.
/
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