Dimitrios Chasapis has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/34295 )
Change subject: configs,python: Fix issue with python3 config scripts when
restoring a checkpoint
......................................................................
configs,python: Fix issue with python3 config scripts when restoring a
checkpoint
Fixes a compatibility issue with the configuration scripts when trying to
restore
a checkpoint. Since python2.4 list.sort has an updated interface. The
older one
has been dropped in python3.
Jira Issue: https://gem5.atlassian.net/browse/GEM5-754
Change-Id: I09f819057d510e477d6ceae0356fafad40f4280d
---
M configs/common/Simulation.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py
index e7fb878..a8d3771 100644
--- a/configs/common/Simulation.py
+++ b/configs/common/Simulation.py
@@ -196,7 +196,7 @@
if match:
cpts.append(match.group(1))
- cpts.sort(lambda a,b: cmp(long(a), long(b)))
+ cpts.sort(key = lambda a: long(a))
cpt_num = options.checkpoint_restore
if cpt_num > len(cpts):
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/34295
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I09f819057d510e477d6ceae0356fafad40f4280d
Gerrit-Change-Number: 34295
Gerrit-PatchSet: 1
Gerrit-Owner: Dimitrios Chasapis <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s