se.py (9793:6e6cefc1db1f) se.py (9800:5fdd91246b7b)
1# Copyright (c) 2012-2013 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

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

152MemClass = Simulation.setMemClass(options)
153
154# Check -- do not allow SMT with multiple CPUs
155if options.smt and options.num_cpus > 1:
156 fatal("You cannot use SMT with multiple CPUs!")
157
158np = options.num_cpus
159system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)],
1# Copyright (c) 2012-2013 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

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

152MemClass = Simulation.setMemClass(options)
153
154# Check -- do not allow SMT with multiple CPUs
155if options.smt and options.num_cpus > 1:
156 fatal("You cannot use SMT with multiple CPUs!")
157
158np = options.num_cpus
159system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)],
160 physmem = MemClass(range=AddrRange("512MB")),
160 physmem = MemClass(range=AddrRange(options.mem_size)),
161 mem_mode = test_mem_mode,
162 clk_domain = SrcClockDomain(clock = options.sys_clock))
163
164# Create a separate clock domain for the CPUs
165system.cpu_clk_domain = SrcClockDomain(clock = options.cpu_clock)
166
167# All cpus belong to a common cpu_clk_domain, therefore running at a common
168# frequency.

--- 74 unchanged lines hidden ---
161 mem_mode = test_mem_mode,
162 clk_domain = SrcClockDomain(clock = options.sys_clock))
163
164# Create a separate clock domain for the CPUs
165system.cpu_clk_domain = SrcClockDomain(clock = options.cpu_clock)
166
167# All cpus belong to a common cpu_clk_domain, therefore running at a common
168# frequency.

--- 74 unchanged lines hidden ---