Simulation.py (8318:3f37cc5d25bc) Simulation.py (8649:c3e7a961c727)
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;

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

35from m5.objects import *
36from m5.util import *
37
38addToPath('../common')
39
40def setCPUClass(options):
41
42 atomic = False
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;

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

35from m5.objects import *
36from m5.util import *
37
38addToPath('../common')
39
40def setCPUClass(options):
41
42 atomic = False
43 if options.timing:
43 if options.cpu_type == "timing":
44 class TmpClass(TimingSimpleCPU): pass
44 class TmpClass(TimingSimpleCPU): pass
45 elif options.detailed:
45 elif options.cpu_type == "detailed":
46 if not options.caches:
47 print "O3 CPU must be used with caches"
48 sys.exit(1)
49 class TmpClass(DerivO3CPU): pass
46 if not options.caches:
47 print "O3 CPU must be used with caches"
48 sys.exit(1)
49 class TmpClass(DerivO3CPU): pass
50 elif options.inorder:
50 elif options.cpu_type == "inorder":
51 if not options.caches:
52 print "InOrder CPU must be used with caches"
53 sys.exit(1)
54 class TmpClass(InOrderCPU): pass
55 else:
56 class TmpClass(AtomicSimpleCPU): pass
57 atomic = True
58

--- 316 unchanged lines hidden ---
51 if not options.caches:
52 print "InOrder CPU must be used with caches"
53 sys.exit(1)
54 class TmpClass(InOrderCPU): pass
55 else:
56 class TmpClass(AtomicSimpleCPU): pass
57 atomic = True
58

--- 316 unchanged lines hidden ---