cpt_upgrader.py (10163:e8608cdddae2) cpt_upgrader.py (10250:9f5e9bdc2f27)
1#!/usr/bin/env python
2
3# Copyright (c) 2012-2013 ARM Limited
4# All rights reserved
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 539 unchanged lines hidden (view full) ---

548# Version 10 adds block_size_bytes to system.ruby
549def from_9(cpt):
550 for sec in cpt.sections():
551 if sec == 'system.ruby':
552 # Use Gem5's default of 64; this should be changed if the to be
553 # upgraded checkpoints were not taken with block-size 64!
554 cpt.set(sec, 'block_size_bytes', '64')
555
1#!/usr/bin/env python
2
3# Copyright (c) 2012-2013 ARM Limited
4# All rights reserved
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 539 unchanged lines hidden (view full) ---

548# Version 10 adds block_size_bytes to system.ruby
549def from_9(cpt):
550 for sec in cpt.sections():
551 if sec == 'system.ruby':
552 # Use Gem5's default of 64; this should be changed if the to be
553 # upgraded checkpoints were not taken with block-size 64!
554 cpt.set(sec, 'block_size_bytes', '64')
555
556# Checkpoint version 11 (0xB) adds the perfLevel variable in the clock domain
557# and voltage domain simObjects used for DVFS and is serialized and
558# unserialized.
559def from_A(cpt):
560 for sec in cpt.sections():
561 import re
562
563 if re.match('^.*sys.*[._]clk_domain$', sec):
564 # Make _perfLevel equal to 0 which means best performance
565 cpt.set(sec, '_perfLevel', ' '.join('0'))
566 elif re.match('^.*sys.*[._]voltage_domain$', sec):
567 # Make _perfLevel equal to 0 which means best performance
568 cpt.set(sec, '_perfLevel', ' '.join('0'))
569 else:
570 continue
571
556migrations = []
557migrations.append(from_0)
558migrations.append(from_1)
559migrations.append(from_2)
560migrations.append(from_3)
561migrations.append(from_4)
562migrations.append(from_5)
563migrations.append(from_6)
564migrations.append(from_7)
565migrations.append(from_8)
566migrations.append(from_9)
572migrations = []
573migrations.append(from_0)
574migrations.append(from_1)
575migrations.append(from_2)
576migrations.append(from_3)
577migrations.append(from_4)
578migrations.append(from_5)
579migrations.append(from_6)
580migrations.append(from_7)
581migrations.append(from_8)
582migrations.append(from_9)
583migrations.append(from_A)
567
568verbose_print = False
569
570def verboseprint(*args):
571 if not verbose_print:
572 return
573 for arg in args:
574 print arg,

--- 95 unchanged lines hidden ---
584
585verbose_print = False
586
587def verboseprint(*args):
588 if not verbose_print:
589 return
590 for arg in args:
591 print arg,

--- 95 unchanged lines hidden ---