syscall_emul: [patch 5/22] remove LiveProcess class and use Process instead
The EIOProcess class was removed recently and it was the only other class which derived from Process. Since every Process invocation is also a LiveProcess invocation, it makes sense to simplify the organization by combining the fields from LiveProcess into Process.
This commit is contained in:
@@ -30,5 +30,5 @@ m5.util.addToPath('../configs/common')
|
||||
from cpu2000 import mcf
|
||||
|
||||
workload = mcf(isa, opsys, 'smred')
|
||||
root.system.cpu[0].workload = workload.makeLiveProcess()
|
||||
root.system.cpu[0].workload = workload.makeProcess()
|
||||
root.system.physmem.range=AddrRange('256MB')
|
||||
|
||||
@@ -30,4 +30,4 @@ m5.util.addToPath('../configs/common')
|
||||
from cpu2000 import parser
|
||||
|
||||
workload = parser(isa, opsys, 'mdred')
|
||||
root.system.cpu[0].workload = workload.makeLiveProcess()
|
||||
root.system.cpu[0].workload = workload.makeProcess()
|
||||
|
||||
@@ -30,4 +30,4 @@ m5.util.addToPath('../configs/common')
|
||||
from cpu2000 import eon_cook
|
||||
|
||||
workload = eon_cook(isa, opsys, 'mdred')
|
||||
root.system.cpu[0].workload = workload.makeLiveProcess()
|
||||
root.system.cpu[0].workload = workload.makeProcess()
|
||||
|
||||
@@ -30,4 +30,4 @@ m5.util.addToPath('../configs/common')
|
||||
from cpu2000 import perlbmk_makerand
|
||||
|
||||
workload = perlbmk_makerand(isa, opsys, 'mdred')
|
||||
root.system.cpu[0].workload = workload.makeLiveProcess()
|
||||
root.system.cpu[0].workload = workload.makeProcess()
|
||||
|
||||
@@ -30,4 +30,4 @@ m5.util.addToPath('../configs/common')
|
||||
from cpu2000 import vortex
|
||||
|
||||
workload = vortex(isa, opsys, 'smred')
|
||||
root.system.cpu[0].workload = workload.makeLiveProcess()
|
||||
root.system.cpu[0].workload = workload.makeProcess()
|
||||
|
||||
@@ -30,4 +30,4 @@ m5.util.addToPath('../configs/common')
|
||||
from cpu2000 import bzip2_source
|
||||
|
||||
workload = bzip2_source(isa, opsys, 'lgred')
|
||||
root.system.cpu[0].workload = workload.makeLiveProcess()
|
||||
root.system.cpu[0].workload = workload.makeProcess()
|
||||
|
||||
@@ -31,7 +31,7 @@ from cpu2000 import twolf
|
||||
import os
|
||||
|
||||
workload = twolf(isa, opsys, 'smred')
|
||||
root.system.cpu[0].workload = workload.makeLiveProcess()
|
||||
root.system.cpu[0].workload = workload.makeProcess()
|
||||
cwd = root.system.cpu[0].workload[0].cwd
|
||||
|
||||
#Remove two files who's presence or absence affects execution
|
||||
|
||||
@@ -35,10 +35,10 @@ benchmarks = [
|
||||
]
|
||||
|
||||
for i, cpu in zip(range(len(cpus)), root.system.cpu):
|
||||
p = LiveProcess()
|
||||
p = Process()
|
||||
p.executable = benchmarks[i*2]
|
||||
p.cmd = benchmarks[(i*2)+1]
|
||||
root.system.cpu[i].workload = p
|
||||
root.system.cpu[i].max_insts_all_threads = 10000000
|
||||
#root.system.cpu.workload = LiveProcess(cmd = 'hello',
|
||||
# executable = binpath('hello'))
|
||||
#root.system.cpu.workload = Process(cmd = 'hello',
|
||||
# executable = binpath('hello'))
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#
|
||||
# Authors: Steve Reinhardt
|
||||
|
||||
root.system.cpu[0].workload = LiveProcess(cmd = 'hello',
|
||||
executable = binpath('hello'))
|
||||
root.system.cpu[0].workload = Process(cmd = 'hello',
|
||||
executable = binpath('hello'))
|
||||
if root.system.cpu[0].checker != NULL:
|
||||
root.system.cpu[0].checker.workload = root.system.cpu[0].workload
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#
|
||||
# Authors: Korey Sewell
|
||||
|
||||
process1 = LiveProcess(cmd = 'hello', executable = binpath('hello'))
|
||||
process2 = LiveProcess(cmd = 'hello', executable = binpath('hello'))
|
||||
process1 = Process(cmd = 'hello', executable = binpath('hello'))
|
||||
process2 = Process(cmd = 'hello', executable = binpath('hello'))
|
||||
|
||||
root.system.cpu[0].workload = [process1, process2]
|
||||
|
||||
@@ -26,5 +26,5 @@
|
||||
#
|
||||
# Authors: Ali Saidi
|
||||
|
||||
root.system.cpu[0].workload = LiveProcess(cmd = 'insttest',
|
||||
executable = binpath('insttest'))
|
||||
root.system.cpu[0].workload = Process(cmd = 'insttest',
|
||||
executable = binpath('insttest'))
|
||||
|
||||
@@ -42,7 +42,7 @@ else:
|
||||
|
||||
driver = ClDriver(filename="hsa", codefile=kernel_files)
|
||||
root.system.cpu[2].cl_driver = driver
|
||||
root.system.cpu[0].workload = LiveProcess(cmd = 'gpu-hello',
|
||||
executable = binpath('gpu-hello'),
|
||||
drivers = [driver])
|
||||
root.system.cpu[0].workload = Process(cmd = 'gpu-hello',
|
||||
executable = binpath('gpu-hello'),
|
||||
drivers = [driver])
|
||||
|
||||
|
||||
@@ -30,5 +30,5 @@ m5.util.addToPath('../configs/common')
|
||||
from cpu2000 import mcf
|
||||
|
||||
workload = mcf(isa, opsys, 'smred')
|
||||
root.system.cpu[0].workload = workload.makeLiveProcess()
|
||||
root.system.cpu[0].workload = workload.makeProcess()
|
||||
root.system.physmem.range=AddrRange('256MB')
|
||||
|
||||
@@ -30,4 +30,4 @@ m5.util.addToPath('../configs/common')
|
||||
from cpu2000 import eon_cook
|
||||
|
||||
workload = eon_cook(isa, opsys, 'mdred')
|
||||
root.system.cpu[0].workload = workload.makeLiveProcess()
|
||||
root.system.cpu[0].workload = workload.makeProcess()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
process = LiveProcess(executable = binpath('m5threads', 'test_atomic'),
|
||||
cmd = ['test_atomic', str(nb_cores)])
|
||||
process = Process(executable = binpath('m5threads', 'test_atomic'),
|
||||
cmd = ['test_atomic', str(nb_cores)])
|
||||
|
||||
for i in range(nb_cores):
|
||||
root.system.cpu[i].workload = process
|
||||
|
||||
@@ -30,4 +30,4 @@ m5.util.addToPath('../configs/common')
|
||||
from cpu2000 import vortex
|
||||
|
||||
workload = vortex(isa, opsys, 'smred')
|
||||
root.system.cpu[0].workload = workload.makeLiveProcess()
|
||||
root.system.cpu[0].workload = workload.makeProcess()
|
||||
|
||||
@@ -31,7 +31,7 @@ from cpu2000 import twolf
|
||||
import os
|
||||
|
||||
workload = twolf(isa, opsys, 'smred')
|
||||
root.system.cpu[0].workload = workload.makeLiveProcess()
|
||||
root.system.cpu[0].workload = workload.makeProcess()
|
||||
cwd = root.system.cpu[0].workload[0].cwd
|
||||
|
||||
#Remove two files who's presence or absence affects execution
|
||||
|
||||
Reference in New Issue
Block a user