x86_generic.py (11682:612f75cf36a0) | x86_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 --- 27 unchanged lines hidden (view full) --- 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.Benchmarks import SysConfig | 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 --- 27 unchanged lines hidden (view full) --- 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.Benchmarks import SysConfig |
44from common import FSConfig | 44from common import FSConfig, SysPaths |
45from common.Caches import * 46from base_config import * 47 48class LinuxX86SystemBuilder(object): 49 """Mix-in that implements create_system. 50 51 This mix-in is intended as a convenient way of adding an 52 X86-specific create_system method to a class deriving from one of 53 the generic base systems. 54 """ 55 def __init__(self): 56 pass 57 58 def create_system(self): 59 mdesc = SysConfig(disk = 'linux-x86.img') 60 system = FSConfig.makeLinuxX86System(self.mem_mode, 61 numCPUs=self.num_cpus, 62 mdesc=mdesc) | 45from common.Caches import * 46from base_config import * 47 48class LinuxX86SystemBuilder(object): 49 """Mix-in that implements create_system. 50 51 This mix-in is intended as a convenient way of adding an 52 X86-specific create_system method to a class deriving from one of 53 the generic base systems. 54 """ 55 def __init__(self): 56 pass 57 58 def create_system(self): 59 mdesc = SysConfig(disk = 'linux-x86.img') 60 system = FSConfig.makeLinuxX86System(self.mem_mode, 61 numCPUs=self.num_cpus, 62 mdesc=mdesc) |
63 system.kernel = SysPaths.binary('x86_64-vmlinux-2.6.22.9') |
|
63 64 self.init_system(system) 65 return system 66 67class LinuxX86FSSystem(LinuxX86SystemBuilder, 68 BaseFSSystem): 69 """Basic X86 full system builder.""" 70 --- 45 unchanged lines hidden --- | 64 65 self.init_system(system) 66 return system 67 68class LinuxX86FSSystem(LinuxX86SystemBuilder, 69 BaseFSSystem): 70 """Basic X86 full system builder.""" 71 --- 45 unchanged lines hidden --- |