alpha_generic.py (11682:612f75cf36a0) alpha_generic.py (13916:efa5b9e899e3)
1# Copyright (c) 2012 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

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

35#
36# Authors: Andreas Sandberg
37
38from abc import ABCMeta, abstractmethod
39import m5
40from m5.objects import *
41from m5.proxy import *
42m5.util.addToPath('../configs/')
1# Copyright (c) 2012 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

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

35#
36# Authors: Andreas Sandberg
37
38from abc import ABCMeta, abstractmethod
39import m5
40from m5.objects import *
41from m5.proxy import *
42m5.util.addToPath('../configs/')
43from common import FSConfig
43from common import FSConfig, SysPaths
44from common.Caches import *
45from base_config import *
46
47class LinuxAlphaSystemBuilder(object):
48 """Mix-in that implements create_system.
49
50 This mix-in is intended as a convenient way of adding an
51 Alpha-specific create_system method to a class deriving from one of
52 the generic base systems.
53 """
54 def __init__(self):
55 """
56 Arguments:
57 machine_type -- String describing the platform to simulate
58 """
59 pass
60
61 def create_system(self):
62 system = FSConfig.makeLinuxAlphaSystem(self.mem_mode)
44from common.Caches import *
45from base_config import *
46
47class LinuxAlphaSystemBuilder(object):
48 """Mix-in that implements create_system.
49
50 This mix-in is intended as a convenient way of adding an
51 Alpha-specific create_system method to a class deriving from one of
52 the generic base systems.
53 """
54 def __init__(self):
55 """
56 Arguments:
57 machine_type -- String describing the platform to simulate
58 """
59 pass
60
61 def create_system(self):
62 system = FSConfig.makeLinuxAlphaSystem(self.mem_mode)
63 system.kernel = SysPaths.binary('vmlinux')
63 self.init_system(system)
64 return system
65
66class LinuxAlphaFSSystem(LinuxAlphaSystemBuilder,
67 BaseFSSystem):
68 """Basic Alpha full system builder."""
69
70 def __init__(self, **kwargs):

--- 30 unchanged lines hidden ---
64 self.init_system(system)
65 return system
66
67class LinuxAlphaFSSystem(LinuxAlphaSystemBuilder,
68 BaseFSSystem):
69 """Basic Alpha full system builder."""
70
71 def __init__(self, **kwargs):

--- 30 unchanged lines hidden ---