BaseSimpleCPU.py (8733:64a7bf8fa56c) | BaseSimpleCPU.py (8887:20ea02da9c53) |
---|---|
1# Copyright (c) 2008 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 15 unchanged lines hidden (view full) --- 24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26# 27# Authors: Gabe Black 28 29from m5.defines import buildEnv 30from m5.params import * 31from BaseCPU import BaseCPU | 1# Copyright (c) 2008 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 15 unchanged lines hidden (view full) --- 24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26# 27# Authors: Gabe Black 28 29from m5.defines import buildEnv 30from m5.params import * 31from BaseCPU import BaseCPU |
32from DummyChecker import DummyChecker |
|
32 | 33 |
33if buildEnv['USE_CHECKER']: 34 from DummyChecker import DummyChecker 35 | |
36class BaseSimpleCPU(BaseCPU): 37 type = 'BaseSimpleCPU' 38 abstract = True 39 | 34class BaseSimpleCPU(BaseCPU): 35 type = 'BaseSimpleCPU' 36 abstract = True 37 |
40 if buildEnv['USE_CHECKER']: 41 checker = Param.BaseCPU(DummyChecker(), "checker") 42 checker.itb = BaseCPU.itb 43 checker.dtb = BaseCPU.dtb | 38 def addCheckerCpu(self): 39 if buildEnv['TARGET_ISA'] in ['arm']: 40 from ArmTLB import ArmTLB 41 42 self.checker = DummyChecker(workload = self.workload) 43 self.checker.itb = ArmTLB(size = self.itb.size) 44 self.checker.dtb = ArmTLB(size = self.dtb.size) 45 else: 46 print "ERROR: Checker only supported under ARM ISA!" 47 exit(1) |