Process.py (11886:43b882cada33) Process.py (11988:665cd5f8b52b)
1# Copyright (c) 2005-2008 The Regents of The University of Michigan
2# All rights reserved.
3#
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

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

21# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Nathan Binkert
28
1# Copyright (c) 2005-2008 The Regents of The University of Michigan
2# All rights reserved.
3#
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

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

21# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Nathan Binkert
28
29from m5.SimObject import SimObject
29from m5.SimObject import *
30from m5.params import *
31from m5.proxy import *
32
33class Process(SimObject):
34 type = 'Process'
35 cxx_header = "sim/process.hh"
30from m5.params import *
31from m5.proxy import *
32
33class Process(SimObject):
34 type = 'Process'
35 cxx_header = "sim/process.hh"
36
37 @cxxMethod
38 def map(self, vaddr, paddr, size, cacheable=False):
39 pass
40
36 input = Param.String('cin', "filename for stdin")
37 output = Param.String('cout', 'filename for stdout')
38 errout = Param.String('cerr', 'filename for stderr')
39 system = Param.System(Parent.any, "system process will run on")
40 useArchPT = Param.Bool('false', 'maintain an in-memory version of the page\
41 table in an architecture-specific format')
42 kvmInSE = Param.Bool('false', 'initialize the process for KvmCPU in SE')
43 maxStackSize = Param.MemorySize('64MB', 'maximum size of the stack')

--- 25 unchanged lines hidden ---
41 input = Param.String('cin', "filename for stdin")
42 output = Param.String('cout', 'filename for stdout')
43 errout = Param.String('cerr', 'filename for stderr')
44 system = Param.System(Parent.any, "system process will run on")
45 useArchPT = Param.Bool('false', 'maintain an in-memory version of the page\
46 table in an architecture-specific format')
47 kvmInSE = Param.Bool('false', 'initialize the process for KvmCPU in SE')
48 maxStackSize = Param.MemorySize('64MB', 'maximum size of the stack')

--- 25 unchanged lines hidden ---