arm_generic.py (12097:77a3d2890ba6) arm_generic.py (13607:6f34290bb182)
1# Copyright (c) 2012, 2017 ARM Limited
1# Copyright (c) 2012, 2017, 2019 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

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

41from m5.proxy import *
42m5.util.addToPath('../configs/')
43from common import FSConfig
44from common.Caches import *
45from base_config import *
46from common.cores.arm.O3_ARM_v7a import *
47from common.Benchmarks import SysConfig
48
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

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

41from m5.proxy import *
42m5.util.addToPath('../configs/')
43from common import FSConfig
44from common.Caches import *
45from base_config import *
46from common.cores.arm.O3_ARM_v7a import *
47from common.Benchmarks import SysConfig
48
49from common import SysPaths
50
49class ArmSESystemUniprocessor(BaseSESystemUniprocessor):
50 """Syscall-emulation builder for ARM uniprocessor systems.
51
52 A small tweak of the syscall-emulation builder to use more
53 representative cache configurations.
54 """
55
56 def __init__(self, **kwargs):

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

90 sc, False, ruby=self.use_ruby)
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
51class ArmSESystemUniprocessor(BaseSESystemUniprocessor):
52 """Syscall-emulation builder for ARM uniprocessor systems.
53
54 A small tweak of the syscall-emulation builder to use more
55 representative cache configurations.
56 """
57
58 def __init__(self, **kwargs):

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

92 sc, False, ruby=self.use_ruby)
93
94 # We typically want the simulator to panic if the kernel
95 # panics or oopses. This prevents the simulator from running
96 # an obviously failed test case until the end of time.
97 system.panic_on_panic = True
98 system.panic_on_oops = True
99
100 default_kernels = {
101 "RealViewPBX": "vmlinux.arm.smp.fb.2.6.38.8",
102 "VExpress_EMM": "vmlinux.aarch32.ll_20131205.0-gem5",
103 "VExpress_EMM64": "vmlinux.aarch64.20140821",
104 }
105 system.kernel = SysPaths.binary(default_kernels[self.machine_type])
106 default_dtbs = {
107 "RealViewPBX": None,
108 "VExpress_EMM": "vexpress.aarch32.ll_20131205.0-gem5.{}cpu.dtb" \
109 .format(self.num_cpus),
110 "VExpress_EMM64": "vexpress.aarch64.20140821.dtb",
111 }
112 system.dtb_filename = SysPaths.binary(default_dtbs[self.machine_type])
113
98 self.init_system(system)
99 return system
100
101class LinuxArmFSSystem(LinuxArmSystemBuilder,
102 BaseFSSystem):
103 """Basic ARM full system builder."""
104
105 def __init__(self, machine_type='VExpress_EMM', **kwargs):

--- 36 unchanged lines hidden ---
114 self.init_system(system)
115 return system
116
117class LinuxArmFSSystem(LinuxArmSystemBuilder,
118 BaseFSSystem):
119 """Basic ARM full system builder."""
120
121 def __init__(self, machine_type='VExpress_EMM', **kwargs):

--- 36 unchanged lines hidden ---