realview64-simple-atomic-checkpoint.py revision 10751
12568SN/A# Copyright (c) 2015 ARM Limited 212652Sandreas.sandberg@arm.com# All rights reserved. 38668Sgeoffrey.blake@arm.com# 48668Sgeoffrey.blake@arm.com# The license below extends only to copyright in the software and shall 58668Sgeoffrey.blake@arm.com# not be construed as granting a license to any other intellectual 68668Sgeoffrey.blake@arm.com# property including but not limited to intellectual property relating 78668Sgeoffrey.blake@arm.com# to a hardware implementation of the functionality of the software 88668Sgeoffrey.blake@arm.com# licensed hereunder. You may use the software subject to the license 98668Sgeoffrey.blake@arm.com# terms below provided that you ensure that this notice is replicated 108668Sgeoffrey.blake@arm.com# unmodified and in its entirety in all distributions of the software, 118668Sgeoffrey.blake@arm.com# modified or unmodified, in source code or in binary form. 128668Sgeoffrey.blake@arm.com# 138668Sgeoffrey.blake@arm.com# Redistribution and use in source and binary forms, with or without 142568SN/A# modification, are permitted provided that the following conditions are 1510975Sdavid.hashe@amd.com# met: redistributions of source code must retain the above copyright 162568SN/A# notice, this list of conditions and the following disclaimer; 172568SN/A# redistributions in binary form must reproduce the above copyright 182568SN/A# notice, this list of conditions and the following disclaimer in the 192568SN/A# documentation and/or other materials provided with the distribution; 202568SN/A# neither the name of the copyright holders nor the names of its 212568SN/A# contributors may be used to endorse or promote products derived from 222568SN/A# this software without specific prior written permission. 232568SN/A# 242568SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 252568SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 262568SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 272568SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 282568SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 292568SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 302568SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 312568SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 322568SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 332568SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 342568SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 352568SN/A# 362568SN/A# Authors: Andreas Sandberg 372568SN/A 382568SN/Aimport functools 392568SN/A 402665Ssaidi@eecs.umich.edufrom m5.objects import * 412665Ssaidi@eecs.umich.edufrom arm_generic import * 422665Ssaidi@eecs.umich.eduimport checkpoint 432568SN/A 442568SN/Aroot = LinuxArmFSSystemUniprocessor(machine_type='VExpress_EMM64', 452568SN/A mem_mode='atomic', 462568SN/A mem_class=SimpleMemory, 472568SN/A cpu_class=AtomicSimpleCPU).create_root() 482568SN/A 492568SN/Arun_test = functools.partial(checkpoint.run_test, interval=1.0) 503260Ssaidi@eecs.umich.edu 5111793Sbrandon.potter@amd.com