summaryrefslogtreecommitdiff
path: root/src/sim/Process.py
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2014-10-22 15:53:34 -0700
committerSteve Reinhardt <steve.reinhardt@amd.com>2014-10-22 15:53:34 -0700
commit44ec1d212499246be3cef40ce7c96a3f65286153 (patch)
tree503f72a85b24db8b82f792cd22341aeb0bdcd112 /src/sim/Process.py
parent6523aad25c32f2443c48b114db4dab078bfb16d1 (diff)
downloadgem5-44ec1d212499246be3cef40ce7c96a3f65286153.tar.xz
syscall_emul: add EmulatedDriver object
Fake SE-mode device drivers can now be added by deriving from this abstract object.
Diffstat (limited to 'src/sim/Process.py')
-rw-r--r--src/sim/Process.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sim/Process.py b/src/sim/Process.py
index 6f2322805..7e5f75363 100644
--- a/src/sim/Process.py
+++ b/src/sim/Process.py
@@ -46,6 +46,12 @@ class Process(SimObject):
def export_methods(cls, code):
code('bool map(Addr vaddr, Addr paddr, int size);')
+class EmulatedDriver(SimObject):
+ type = 'EmulatedDriver'
+ cxx_header = "sim/emul_driver.hh"
+ abstract = True
+ filename = Param.String("device file name (under /dev)")
+
class LiveProcess(Process):
type = 'LiveProcess'
cxx_header = "sim/process.hh"
@@ -60,3 +66,5 @@ class LiveProcess(Process):
pid = Param.Int(100, 'process id')
ppid = Param.Int(99, 'parent process id')
simpoint = Param.UInt64(0, 'simulation point at which to start simulation')
+ drivers = VectorParam.EmulatedDriver([], 'Available emulated drivers')
+