diff options
author | Nathan Binkert <nate@binkert.org> | 2009-09-23 08:34:21 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-09-23 08:34:21 -0700 |
commit | d9f39c8ce75aac84c88b32392c2967344362906b (patch) | |
tree | 40b5c2bd6972e971b9d540691487d0256bf2e031 /SConstruct | |
parent | 2278363015a2a5cc850b38213833096d33b496e8 (diff) | |
download | gem5-d9f39c8ce75aac84c88b32392c2967344362906b.tar.xz |
arch: nuke arch/isa_specific.hh and move stuff to generated config/the_isa.hh
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/SConstruct b/SConstruct index f143bca0e..dac317fe8 100644 --- a/SConstruct +++ b/SConstruct @@ -742,17 +742,10 @@ def make_switching_dir(dname, switch_headers, env): # list of ISAs from env['ALL_ISA_LIST']. def gen_switch_hdr(target, source, env): fname = str(target[0]) - bname = basename(fname) f = open(fname, 'w') - f.write('#include "arch/isa_specific.hh"\n') - cond = '#if' - for isa in all_isa_list: - f.write('%s THE_ISA == %s_ISA\n#include "%s/%s/%s"\n' - % (cond, isa.upper(), dname, isa, bname)) - cond = '#elif' - f.write('#else\n#error "THE_ISA not set"\n#endif\n') + isa = env['TARGET_ISA'].lower() + print >>f, '#include "%s/%s/%s"' % (dname, isa, basename(fname)) f.close() - return 0 # String to print when generating header def gen_switch_hdr_string(target, source, env): |