Process.py (13883:f44e21d3aaa7) Process.py (14014:ce216ee5d886)
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

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

57 pgid = Param.Int(100, 'process group id')
58
59 executable = Param.String('', "executable (overrides cmd[0] if set)")
60 cmd = VectorParam.String("command line (executable plus arguments)")
61 env = VectorParam.String([], "environment settings")
62 cwd = Param.String(getcwd(), "current working directory")
63 simpoint = Param.UInt64(0, 'simulation point at which to start simulation')
64 drivers = VectorParam.EmulatedDriver([], 'Available emulated drivers')
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

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

57 pgid = Param.Int(100, 'process group id')
58
59 executable = Param.String('', "executable (overrides cmd[0] if set)")
60 cmd = VectorParam.String("command line (executable plus arguments)")
61 env = VectorParam.String([], "environment settings")
62 cwd = Param.String(getcwd(), "current working directory")
63 simpoint = Param.UInt64(0, 'simulation point at which to start simulation')
64 drivers = VectorParam.EmulatedDriver([], 'Available emulated drivers')
65 release = Param.String('5.1.0', "Linux kernel uname release")
65
66 @classmethod
67 def export_methods(cls, code):
68 code('bool map(Addr vaddr, Addr paddr, int sz, bool cacheable=true);')
69
70class EmulatedDriver(SimObject):
71 type = 'EmulatedDriver'
72 cxx_header = "sim/emul_driver.hh"
73 abstract = True
74 filename = Param.String("device file name (under /dev)")
66
67 @classmethod
68 def export_methods(cls, code):
69 code('bool map(Addr vaddr, Addr paddr, int sz, bool cacheable=true);')
70
71class EmulatedDriver(SimObject):
72 type = 'EmulatedDriver'
73 cxx_header = "sim/emul_driver.hh"
74 abstract = True
75 filename = Param.String("device file name (under /dev)")