Sign in
gem5
/
public
/
gem5
/
6884aeb86a73125969c293b9d3fedd242e104985
/
.
/
util
/
cpt_upgraders
/
ide-dma-abort.py
blob: 86a26446d1d54768b2f4041f033feca999ad0fb7 [
file
] [
log
] [
blame
]
# Update IDE disk devices with dmaAborted flag
def
upgrader
(
cpt
):
for
sec
in
cpt
.
sections
():
# curSector only exists in IDE devices, so key on that attribute
if
cpt
.
has_option
(
sec
,
"curSector"
):
cpt
.
set
(
sec
,
"dmaAborted"
,
"false"
)
legacy_version
=
7