diff options
Diffstat (limited to 'util/cpt_upgraders/ruby-block-size-bytes.py')
-rw-r--r-- | util/cpt_upgraders/ruby-block-size-bytes.py | 9 |
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 |