arm_generic.py (11682:612f75cf36a0) arm_generic.py (12070:d89ac2ebc159)
1# Copyright (c) 2012 ARM Limited
1# Copyright (c) 2012, 2017 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
9# terms below provided that you ensure that this notice is replicated

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

71 ARM-specific create_system method to a class deriving from one of
72 the generic base systems.
73 """
74 def __init__(self, machine_type, **kwargs):
75 """
76 Arguments:
77 machine_type -- String describing the platform to simulate
78 num_cpus -- integer number of CPUs in the system
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
9# terms below provided that you ensure that this notice is replicated

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

71 ARM-specific create_system method to a class deriving from one of
72 the generic base systems.
73 """
74 def __init__(self, machine_type, **kwargs):
75 """
76 Arguments:
77 machine_type -- String describing the platform to simulate
78 num_cpus -- integer number of CPUs in the system
79 use_ruby -- True if ruby is used instead of the classic memory system
79 """
80 self.machine_type = machine_type
81 self.num_cpus = kwargs.get('num_cpus', 1)
82 self.mem_size = kwargs.get('mem_size', '256MB')
80 """
81 self.machine_type = machine_type
82 self.num_cpus = kwargs.get('num_cpus', 1)
83 self.mem_size = kwargs.get('mem_size', '256MB')
84 self.use_ruby = kwargs.get('use_ruby', False)
83
84 def create_system(self):
85 sc = SysConfig(None, self.mem_size, None)
86 system = FSConfig.makeArmSystem(self.mem_mode,
87 self.machine_type, self.num_cpus,
85
86 def create_system(self):
87 sc = SysConfig(None, self.mem_size, None)
88 system = FSConfig.makeArmSystem(self.mem_mode,
89 self.machine_type, self.num_cpus,
88 sc, False)
90 sc, False, ruby=self.use_ruby)
89
90 # We typically want the simulator to panic if the kernel
91 # panics or oopses. This prevents the simulator from running
92 # an obviously failed test case until the end of time.
93 system.panic_on_panic = True
94 system.panic_on_oops = True
95
96 self.init_system(system)

--- 43 unchanged lines hidden ---
91
92 # We typically want the simulator to panic if the kernel
93 # panics or oopses. This prevents the simulator from running
94 # an obviously failed test case until the end of time.
95 system.panic_on_panic = True
96 system.panic_on_oops = True
97
98 self.init_system(system)

--- 43 unchanged lines hidden ---