Simulation.py (8649:c3e7a961c727) Simulation.py (8689:ec5f79b99ac3)
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;

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

55 else:
56 class TmpClass(AtomicSimpleCPU): pass
57 atomic = True
58
59 CPUClass = None
60 test_mem_mode = 'atomic'
61
62 if not atomic:
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;

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

55 else:
56 class TmpClass(AtomicSimpleCPU): pass
57 atomic = True
58
59 CPUClass = None
60 test_mem_mode = 'atomic'
61
62 if not atomic:
63 if options.checkpoint_restore != None or options.fast_forward:
63 if options.checkpoint_restore != None:
64 if options.restore_with_cpu != options.cpu_type:
65 CPUClass = TmpClass
66 class TmpClass(AtomicSimpleCPU): pass
67 else:
68 if options.restore_with_cpu != "atomic":
69 test_mem_mode = 'timing'
70
71 elif options.fast_forward:
64 CPUClass = TmpClass
65 class TmpClass(AtomicSimpleCPU): pass
66 else:
67 test_mem_mode = 'timing'
68
69 return (TmpClass, test_mem_mode, CPUClass)
70
71

--- 303 unchanged lines hidden ---
72 CPUClass = TmpClass
73 class TmpClass(AtomicSimpleCPU): pass
74 else:
75 test_mem_mode = 'timing'
76
77 return (TmpClass, test_mem_mode, CPUClass)
78
79

--- 303 unchanged lines hidden ---