SConscript (2935:d1223a6c9156) SConscript (2978:199dcea84fc4)
1# -*- mode:python -*-
2
3# Copyright (c) 2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

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

54elif env['TARGET_ISA'] == 'mips':
55 sources += Split('''
56 mips/dyn_inst.cc
57 mips/cpu.cc
58 mips/thread_context.cc
59 mips/cpu_builder.cc
60 ''')
61elif env['TARGET_ISA'] == 'sparc':
1# -*- mode:python -*-
2
3# Copyright (c) 2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

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

54elif env['TARGET_ISA'] == 'mips':
55 sources += Split('''
56 mips/dyn_inst.cc
57 mips/cpu.cc
58 mips/thread_context.cc
59 mips/cpu_builder.cc
60 ''')
61elif env['TARGET_ISA'] == 'sparc':
62 sys.exit('O3 CPU does not support Sparc')
63 #sources += Split('''
64 # sparc/dyn_inst.cc
65 # sparc/cpu.cc
66 # sparc/thread_context.cc
67 # sparc/cpu_builder.cc
68 # ''')
62 sources += Split('''
63 sparc/dyn_inst.cc
64 sparc/cpu.cc
65 sparc/thread_context.cc
66 sparc/cpu_builder.cc
67 ''')
69else:
70 sys.exit('O3 CPU does not support the \'%s\' ISA' % env['TARGET_ISA'])
71
72
73# Convert file names to SCons File objects. This takes care of the
74# path relative to the top of the directory tree.
75sources = [File(s) for s in sources]
76
77Return('sources')
78
68else:
69 sys.exit('O3 CPU does not support the \'%s\' ISA' % env['TARGET_ISA'])
70
71
72# Convert file names to SCons File objects. This takes care of the
73# path relative to the top of the directory tree.
74sources = [File(s) for s in sources]
75
76Return('sources')
77