Simulation.py (5311:9ed42a2315ae) | Simulation.py (5347:f15b21a5bd2e) |
---|---|
1# Copyright (c) 2006-2007 The Regents of The University of Michigan | 1# Copyright (c) 2006-2008 The Regents of The University of Michigan |
2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright 9# notice, this list of conditions and the following disclaimer in the --- 22 unchanged lines hidden (view full) --- 32from m5.objects import * 33m5.AddToPath('../common') 34from Caches import L1Cache 35 36def setCPUClass(options): 37 38 atomic = False 39 if options.timing: | 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright 9# notice, this list of conditions and the following disclaimer in the --- 22 unchanged lines hidden (view full) --- 32from m5.objects import * 33m5.AddToPath('../common') 34from Caches import L1Cache 35 36def setCPUClass(options): 37 38 atomic = False 39 if options.timing: |
40 TmpClass = TimingSimpleCPU | 40 class TmpClass(TimingSimpleCPU): pass |
41 elif options.detailed: 42 if not options.caches: 43 print "O3 CPU must be used with caches" 44 sys.exit(1) | 41 elif options.detailed: 42 if not options.caches: 43 print "O3 CPU must be used with caches" 44 sys.exit(1) |
45 TmpClass = DerivO3CPU | 45 class TmpClass(DerivO3CPU): pass |
46 else: | 46 else: |
47 TmpClass = AtomicSimpleCPU | 47 class TmpClass(AtomicSimpleCPU): pass |
48 atomic = True 49 50 CPUClass = None 51 test_mem_mode = 'atomic' 52 53 if not atomic: 54 if options.checkpoint_restore: 55 CPUClass = TmpClass | 48 atomic = True 49 50 CPUClass = None 51 test_mem_mode = 'atomic' 52 53 if not atomic: 54 if options.checkpoint_restore: 55 CPUClass = TmpClass |
56 TmpClass = AtomicSimpleCPU | 56 class TmpClass(AtomicSimpleCPU): pass |
57 else: 58 test_mem_mode = 'timing' 59 60 return (TmpClass, test_mem_mode, CPUClass) 61 62 63def run(options, root, testsys, cpu_class): 64 if options.maxtick: --- 167 unchanged lines hidden --- | 57 else: 58 test_mem_mode = 'timing' 59 60 return (TmpClass, test_mem_mode, CPUClass) 61 62 63def run(options, root, testsys, cpu_class): 64 if options.maxtick: --- 167 unchanged lines hidden --- |