merge
[gem5.git] / tests / long / 20.parser / test.py
index 7609087223e8700a65c74c396aacd61e835b1208..c96a46e60d5859ba6e14bc4074708e73f83758d2 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2006 The Regents of The University of Michigan
+# Copyright (c) 2006-2007 The Regents of The University of Michigan
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,8 @@
 #
 # Authors: Korey Sewell
 
-process = LiveProcess(executable = binpath('parser'))
-process.cmd = 'parser 2.1.dict -batch'
-process.input = inputpath('parser', 'lgred.in')
-root.system.cpu.workload = process
+m5.util.addToPath('../configs/common')
+from cpu2000 import parser
+
+workload = parser(isa, opsys, 'mdred')
+root.system.cpu.workload = workload.makeLiveProcess()