System.py (10037:5cac77888310) System.py (10249:6bbb7ae309ac)
1# Copyright (c) 2005-2007 The Regents of The University of Michigan
2# Copyright (c) 2011 Regents of the University of California
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

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

28# Authors: Nathan Binkert
29# Rick Strong
30
31from m5.SimObject import SimObject
32from m5.defines import buildEnv
33from m5.params import *
34from m5.proxy import *
35
1# Copyright (c) 2005-2007 The Regents of The University of Michigan
2# Copyright (c) 2011 Regents of the University of California
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

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

28# Authors: Nathan Binkert
29# Rick Strong
30
31from m5.SimObject import SimObject
32from m5.defines import buildEnv
33from m5.params import *
34from m5.proxy import *
35
36from DVFSHandler import *
36from SimpleMemory import *
37
38class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing',
39 'atomic_noncaching']
40
41class System(MemObject):
42 type = 'System'
43 cxx_header = "sim/system.hh"

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

83 init_param = Param.UInt64(0, "numerical value to pass into simulator")
84 boot_osflags = Param.String("a", "boot flags to pass to the kernel")
85 kernel = Param.String("", "file that contains the kernel code")
86 readfile = Param.String("", "file to read startup script from")
87 symbolfile = Param.String("", "file to get the symbols from")
88 load_addr_mask = Param.UInt64(0xffffffffff,
89 "Address to mask loading binaries with")
90 load_offset = Param.UInt64(0, "Address to offset loading binaries with")
37from SimpleMemory import *
38
39class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing',
40 'atomic_noncaching']
41
42class System(MemObject):
43 type = 'System'
44 cxx_header = "sim/system.hh"

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

84 init_param = Param.UInt64(0, "numerical value to pass into simulator")
85 boot_osflags = Param.String("a", "boot flags to pass to the kernel")
86 kernel = Param.String("", "file that contains the kernel code")
87 readfile = Param.String("", "file to read startup script from")
88 symbolfile = Param.String("", "file to get the symbols from")
89 load_addr_mask = Param.UInt64(0xffffffffff,
90 "Address to mask loading binaries with")
91 load_offset = Param.UInt64(0, "Address to offset loading binaries with")
92
93 # Dynamic voltage and frequency handler for the system, disabled by default
94 # Provide list of domains that need to be controlled by the handler
95 dvfs_handler = DVFSHandler()