simple-atomic-dummychecker.py (8889:2e38fd9937a9) | simple-atomic-dummychecker.py (8931:7a1dfb191e3f) |
---|---|
1# Copyright (c) 2011 ARM Limited 2# All rights reserved 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 25 unchanged lines hidden (view full) --- 34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35# 36# Authors: Geoffrey Blake 37 38import m5 39from m5.objects import * 40 41system = System(cpu = AtomicSimpleCPU(cpu_id=0), | 1# Copyright (c) 2011 ARM Limited 2# All rights reserved 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 25 unchanged lines hidden (view full) --- 34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35# 36# Authors: Geoffrey Blake 37 38import m5 39from m5.objects import * 40 41system = System(cpu = AtomicSimpleCPU(cpu_id=0), |
42 physmem = PhysicalMemory(), | 42 physmem = SimpleMemory(), |
43 membus = Bus()) 44system.system_port = system.membus.slave 45system.physmem.port = system.membus.master 46system.cpu.addCheckerCpu() 47system.cpu.createInterruptController() 48system.cpu.connectAllPorts(system.membus) 49system.cpu.clock = '2GHz' 50 51root = Root(full_system = False, system = system) | 43 membus = Bus()) 44system.system_port = system.membus.slave 45system.physmem.port = system.membus.master 46system.cpu.addCheckerCpu() 47system.cpu.createInterruptController() 48system.cpu.connectAllPorts(system.membus) 49system.cpu.clock = '2GHz' 50 51root = Root(full_system = False, system = system) |