cpt_upgrader.py (10037:5cac77888310) cpt_upgrader.py (10163:e8608cdddae2)
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

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

540 # Fill in tlb info with some defaults
541 cpt.set(new_sec, '_attr', '0')
542 cpt.set(new_sec, 'haveLPAE', 'false')
543 cpt.set(new_sec, 'directToStage2', 'false')
544 cpt.set(new_sec, 'stage2Req', 'false')
545 cpt.set(new_sec, 'bootUncacheability', 'false')
546 cpt.set(new_sec, 'num_entries', '0')
547
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

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

540 # Fill in tlb info with some defaults
541 cpt.set(new_sec, '_attr', '0')
542 cpt.set(new_sec, 'haveLPAE', 'false')
543 cpt.set(new_sec, 'directToStage2', 'false')
544 cpt.set(new_sec, 'stage2Req', 'false')
545 cpt.set(new_sec, 'bootUncacheability', 'false')
546 cpt.set(new_sec, 'num_entries', '0')
547
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')
548
549migrations = []
550migrations.append(from_0)
551migrations.append(from_1)
552migrations.append(from_2)
553migrations.append(from_3)
554migrations.append(from_4)
555migrations.append(from_5)
556migrations.append(from_6)
557migrations.append(from_7)
558migrations.append(from_8)
555
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)
559
560verbose_print = False
561
562def verboseprint(*args):
563 if not verbose_print:
564 return
565 for arg in args:
566 print arg,

--- 95 unchanged lines hidden ---
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 ---