ArmSystem.py (7580:6f77f379a594) ArmSystem.py (7585:afbc40280b56)
1# Copyright (c) 2009 ARM Limited
2# All rights reserved.
3#
1# Copyright (c) 2009 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
10# unmodified and in its entirety in all distributions of the software,
11# modified or unmodified, in source code or in binary form.
12#
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
9# notice, this list of conditions and the following disclaimer in the
10# documentation and/or other materials provided with the distribution;
11# neither the name of the copyright holders nor the names of its

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

25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Ali Saidi
28
29from m5.params import *
30
31from System import System
32
13# Redistribution and use in source and binary forms, with or without
14# modification, are permitted provided that the following conditions are
15# met: redistributions of source code must retain the above copyright
16# notice, this list of conditions and the following disclaimer;
17# redistributions in binary form must reproduce the above copyright
18# notice, this list of conditions and the following disclaimer in the
19# documentation and/or other materials provided with the distribution;
20# neither the name of the copyright holders nor the names of its

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

34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35#
36# Authors: Ali Saidi
37
38from m5.params import *
39
40from System import System
41
42class ArmMachineType(Enum):
43 map = {'RealView_EB' : 827,
44 'RealView_PBX' : 1901 }
45
33class ArmSystem(System):
34 type = 'ArmSystem'
35 load_addr_mask = 0xffffffff
36
46class ArmSystem(System):
47 type = 'ArmSystem'
48 load_addr_mask = 0xffffffff
49
50class LinuxArmSystem(ArmSystem):
51 type = 'LinuxArmSystem'
52 load_addr_mask = 0x0fffffff
53 machine_type = Param.ArmMachineType('RealView_PBX',
54 "Machine id from http://www.arm.linux.org.uk/developer/machines/")