1process = Process(executable = binpath('m5threads', 'test_atomic'),
2                  cmd = ['test_atomic', str(nb_cores)])
3
4for i in range(nb_cores):
5    root.system.cpu[i].workload = process
6