Sign in
gem5
/
public
/
gem5
/
6c997b633fb5759bd45ff947626c5228e2c67539
/
.
/
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