Simulation.py (8887:20ea02da9c53) Simulation.py (8919:c1366a30d5eb)
1# Copyright (c) 2006-2008 The Regents of The University of Michigan
2# Copyright (c) 2010 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 66 unchanged lines hidden (view full) ---

75 elif options.fast_forward:
76 CPUClass = TmpClass
77 class TmpClass(AtomicSimpleCPU): pass
78 else:
79 test_mem_mode = 'timing'
80
81 return (TmpClass, test_mem_mode, CPUClass)
82
1# Copyright (c) 2006-2008 The Regents of The University of Michigan
2# Copyright (c) 2010 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 66 unchanged lines hidden (view full) ---

75 elif options.fast_forward:
76 CPUClass = TmpClass
77 class TmpClass(AtomicSimpleCPU): pass
78 else:
79 test_mem_mode = 'timing'
80
81 return (TmpClass, test_mem_mode, CPUClass)
82
83def setWorkCountOptions(system, options):
84 if options.work_item_id != None:
85 system.work_item_id = options.work_item_id
86 if options.work_begin_cpu_id_exit != None:
87 system.work_begin_cpu_id_exit = options.work_begin_cpu_id_exit
88 if options.work_end_exit_count != None:
89 system.work_end_exit_count = options.work_end_exit_count
90 if options.work_end_checkpoint_count != None:
91 system.work_end_ckpt_count = options.work_end_checkpoint_count
92 if options.work_begin_exit_count != None:
93 system.work_begin_exit_count = options.work_begin_exit_count
94 if options.work_begin_checkpoint_count != None:
95 system.work_begin_ckpt_count = options.work_begin_checkpoint_count
96 if options.work_cpus_checkpoint_count != None:
97 system.work_cpus_ckpt_count = options.work_cpus_checkpoint_count
83
84def run(options, root, testsys, cpu_class):
85 if options.maxtick:
86 maxtick = options.maxtick
87 elif options.maxtime:
88 simtime = m5.ticks.seconds(simtime)
89 print "simulating for: ", simtime
90 maxtick = simtime

--- 302 unchanged lines hidden ---
98
99def run(options, root, testsys, cpu_class):
100 if options.maxtick:
101 maxtick = options.maxtick
102 elif options.maxtime:
103 simtime = m5.ticks.seconds(simtime)
104 print "simulating for: ", simtime
105 maxtick = simtime

--- 302 unchanged lines hidden ---