summaryrefslogtreecommitdiff
path: root/util/cpt_upgraders/ruby-block-size-bytes.py
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2015-09-03 15:40:20 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2015-09-03 15:40:20 -0500
commit80b911afd573ecda0cefb8f24b83d94b7faf4b7b (patch)
tree95aa2f9794fe70fa812c63583f9db6602457b69e /util/cpt_upgraders/ruby-block-size-bytes.py
parent2ab38ba13c6245480a08cd5b8651b5af8fce5a4b (diff)
parent87b9da2df4d4dc0028566a7803ee55159343d735 (diff)
downloadgem5-80b911afd573ecda0cefb8f24b83d94b7faf4b7b.tar.xz
merged with recent commits.
Diffstat (limited to 'util/cpt_upgraders/ruby-block-size-bytes.py')
-rw-r--r--util/cpt_upgraders/ruby-block-size-bytes.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/util/cpt_upgraders/ruby-block-size-bytes.py b/util/cpt_upgraders/ruby-block-size-bytes.py
new file mode 100644
index 000000000..337bd5d03
--- /dev/null
+++ b/util/cpt_upgraders/ruby-block-size-bytes.py
@@ -0,0 +1,9 @@
+# Add block_size_bytes to system.ruby
+def upgrader(cpt):
+ for sec in cpt.sections():
+ if sec == 'system.ruby':
+ # Use Gem5's default of 64; this should be changed if the to be
+ # upgraded checkpoints were not taken with block-size 64!
+ cpt.set(sec, 'block_size_bytes', '64')
+
+legacy_version = 10