NonCachingSimpleCPU.py revision 13665
16145Snate@binkert.org# Copyright (c) 2012, 2018 ARM Limited 26145Snate@binkert.org# All rights reserved. 36145Snate@binkert.org# 46145Snate@binkert.org# The license below extends only to copyright in the software and shall 56145Snate@binkert.org# not be construed as granting a license to any other intellectual 66145Snate@binkert.org# property including but not limited to intellectual property relating 76145Snate@binkert.org# to a hardware implementation of the functionality of the software 86145Snate@binkert.org# licensed hereunder. You may use the software subject to the license 96145Snate@binkert.org# terms below provided that you ensure that this notice is replicated 106145Snate@binkert.org# unmodified and in its entirety in all distributions of the software, 116145Snate@binkert.org# modified or unmodified, in source code or in binary form. 126145Snate@binkert.org# 136145Snate@binkert.org# Redistribution and use in source and binary forms, with or without 146145Snate@binkert.org# modification, are permitted provided that the following conditions are 156145Snate@binkert.org# met: redistributions of source code must retain the above copyright 166145Snate@binkert.org# notice, this list of conditions and the following disclaimer; 176145Snate@binkert.org# redistributions in binary form must reproduce the above copyright 186145Snate@binkert.org# notice, this list of conditions and the following disclaimer in the 196145Snate@binkert.org# documentation and/or other materials provided with the distribution; 206145Snate@binkert.org# neither the name of the copyright holders nor the names of its 216145Snate@binkert.org# contributors may be used to endorse or promote products derived from 226145Snate@binkert.org# this software without specific prior written permission. 236145Snate@binkert.org# 246145Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 256145Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 266145Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 276145Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 286145Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 298229Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 307056Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 318615Snilay@cs.wisc.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 328615Snilay@cs.wisc.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 338615Snilay@cs.wisc.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 348615Snilay@cs.wisc.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 357632SBrad.Beckmann@amd.com# 368232Snate@binkert.org# Authors: Andreas Sandberg 378232Snate@binkert.org 388615Snilay@cs.wisc.edufrom m5.params import * 398615Snilay@cs.wisc.edufrom m5.objects.AtomicSimpleCPU import AtomicSimpleCPU 408615Snilay@cs.wisc.edu 417039Snate@binkert.orgclass NonCachingSimpleCPU(AtomicSimpleCPU): 427039Snate@binkert.org """Simple CPU model based on the atomic CPU. Unlike the atomic CPU, 437039Snate@binkert.org this model causes the memory system to bypass caches and is 447039Snate@binkert.org therefore slightly faster in some cases. However, its main purpose 457039Snate@binkert.org is as a substitute for hardware virtualized CPUs when 468229Snate@binkert.org stress-testing the memory system. 477039Snate@binkert.org 486154Snate@binkert.org """ 496154Snate@binkert.org 507550SBrad.Beckmann@amd.com type = 'NonCachingSimpleCPU' 516876Ssteve.reinhardt@amd.com cxx_header = "cpu/simple/noncaching.hh" 526876Ssteve.reinhardt@amd.com 537055Snate@binkert.org @classmethod 547055Snate@binkert.org def memory_mode(cls): 556876Ssteve.reinhardt@amd.com return 'atomic_noncaching' 566876Ssteve.reinhardt@amd.com 576285Snate@binkert.org @classmethod 586876Ssteve.reinhardt@amd.com def support_take_over(cls): 596285Snate@binkert.org return True 607039Snate@binkert.org 616876Ssteve.reinhardt@amd.com