SConscript (11696:80c30bd0c7d6) SConscript (12015:469a2f126b4c)
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

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

38#
39# ISA "switch header" generation.
40#
41# Auto-generate arch headers that include the right ISA-specific
42# header based on the setting of THE_ISA preprocessor variable.
43#
44#################################################################
45
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

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

38#
39# ISA "switch header" generation.
40#
41# Auto-generate arch headers that include the right ISA-specific
42# header based on the setting of THE_ISA preprocessor variable.
43#
44#################################################################
45
46# List of headers to generate
47isa_switch_hdrs = Split('''
46env.SwitchingHeaders(
47 Split('''
48 decoder.hh
49 interrupts.hh
50 isa.hh
51 isa_traits.hh
52 kernel_stats.hh
53 locked_mem.hh
54 microcode_rom.hh
55 mmapped_ipr.hh
56 mt.hh
57 process.hh
58 pseudo_inst.hh
59 registers.hh
60 remote_gdb.hh
61 stacktrace.hh
62 tlb.hh
63 types.hh
64 utility.hh
65 vtophys.hh
48 decoder.hh
49 interrupts.hh
50 isa.hh
51 isa_traits.hh
52 kernel_stats.hh
53 locked_mem.hh
54 microcode_rom.hh
55 mmapped_ipr.hh
56 mt.hh
57 process.hh
58 pseudo_inst.hh
59 registers.hh
60 remote_gdb.hh
61 stacktrace.hh
62 tlb.hh
63 types.hh
64 utility.hh
65 vtophys.hh
66 ''')
66 '''),
67 env.subst('${TARGET_ISA}'))
67
68
68# Set up this directory to support switching headers
69make_switching_dir('arch', isa_switch_hdrs, env)
70
71if env['BUILD_GPU']:
72 gpu_isa_switch_hdrs = Split('''
73 gpu_decoder.hh
74 gpu_isa.hh
75 gpu_types.hh
76 ''')
77
78 make_gpu_switching_dir('arch', gpu_isa_switch_hdrs, env)

--- 131 unchanged lines hidden ---
69if env['BUILD_GPU']:
70 gpu_isa_switch_hdrs = Split('''
71 gpu_decoder.hh
72 gpu_isa.hh
73 gpu_types.hh
74 ''')
75
76 make_gpu_switching_dir('arch', gpu_isa_switch_hdrs, env)

--- 131 unchanged lines hidden ---