-# 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
#
# Authors: Korey Sewell
-process = LiveProcess(executable = binpath('perlbmk'))
-process.cmd = 'perlbmk -I./lib' + inputpath('perlbmk', 'lgred.makerand.pl')
-root.system.cpu.workload = process
+m5.AddToPath('../configs/common')
+from cpu2000 import perlbmk_makerand
+
+workload = perlbmk_makerand(isa, opsys, 'lgred')
+root.system.cpu.workload = workload.makeLiveProcess()