Changed targetarch to just arch.

SConscript:
    Changed all of the "targetarch" files to be "arch" files
arch/SConscript:
    Added all of the remaining targetarch files to isa_switch_hdrs

--HG--
extra : convert_revision : a37d18349e27cf92dce12814f21944daa7fe9480
This commit is contained in:
Gabe Black 2006-02-27 05:35:43 -05:00
parent f56d42c53d
commit c5dcd152f2
26 changed files with 57 additions and 47 deletions

View file

@ -305,23 +305,23 @@ syscall_emulation_sources = Split('''
# time. These will have to go away if we want to build a binary that # time. These will have to go away if we want to build a binary that
# supports multiple ISAs. # supports multiple ISAs.
targetarch_files = Split(''' #targetarch_files = Split('''
alpha_linux_process.hh # alpha_linux_process.hh
alpha_memory.hh # alpha_memory.hh
alpha_tru64_process.hh # alpha_tru64_process.hh
aout_machdep.h # aout_machdep.h
arguments.hh # arguments.hh
ecoff_machdep.h # ecoff_machdep.h
ev5.hh # ev5.hh
faults.hh # faults.hh
stacktrace.hh # stacktrace.hh
vtophys.hh # vtophys.hh
''') # ''')
# Set up bridging headers to the architecture specific versions # Set up bridging headers to the architecture specific versions
for f in targetarch_files: #for f in targetarch_files:
env.Command('targetarch/' + f, 'arch/%s/%s' % (env['TARGET_ISA'], f), # env.Command('targetarch/' + f, 'arch/%s/%s' % (env['TARGET_ISA'], f),
'''echo '#include "arch/%s/%s"' > $TARGET''' % (env['TARGET_ISA'], f)) # '''echo '#include "arch/%s/%s"' > $TARGET''' % (env['TARGET_ISA'], f))
# Add a flag defining what THE_ISA should be for all compilation # Add a flag defining what THE_ISA should be for all compilation
env.Append(CPPDEFINES=[('THE_ISA','%s_ISA' % env['TARGET_ISA'].upper())]) env.Append(CPPDEFINES=[('THE_ISA','%s_ISA' % env['TARGET_ISA'].upper())])

View file

@ -46,6 +46,16 @@ sources = []
# List of headers to generate # List of headers to generate
isa_switch_hdrs = Split(''' isa_switch_hdrs = Split('''
isa_traits.hh isa_traits.hh
alpha_linux_process.hh
alpha_tru64_process.hh
alpha_memory.hh
aout_machdep.h
ecoff_machdep.h
arguments.hh
stacktrace.hh
vtophys.hh
faults.hh
ev5.hh
''') ''')
# Generate the header. target[0] is the full path of the output # Generate the header. target[0] is the full path of the output

View file

@ -55,6 +55,6 @@
(N_GETMAGIC(ex) != NMAGIC && N_GETMAGIC(ex) != OMAGIC && \ (N_GETMAGIC(ex) != NMAGIC && N_GETMAGIC(ex) != OMAGIC && \
N_GETMAGIC(ex) != ZMAGIC) N_GETMAGIC(ex) != ZMAGIC)
#include "targetarch/aout_machdep.h" #include "arch/aout_machdep.h"
#endif /* !_SYS_EXEC_AOUT_H_ */ #endif /* !_SYS_EXEC_AOUT_H_ */

View file

@ -37,7 +37,7 @@
#ifndef _SYS_EXEC_ECOFF_H_ #ifndef _SYS_EXEC_ECOFF_H_
#define _SYS_EXEC_ECOFF_H_ #define _SYS_EXEC_ECOFF_H_
#include "targetarch/ecoff_machdep.h" #include "arch/ecoff_machdep.h"
struct ecoff_filehdr { struct ecoff_filehdr {
coff_ushort f_magic; /* magic number */ coff_ushort f_magic; /* magic number */

View file

@ -129,7 +129,7 @@
#include "cpu/static_inst.hh" #include "cpu/static_inst.hh"
#include "mem/functional/physical.hh" #include "mem/functional/physical.hh"
#include "sim/system.hh" #include "sim/system.hh"
#include "targetarch/vtophys.hh" #include "arch/vtophys.hh"
using namespace std; using namespace std;
using namespace TheISA; using namespace TheISA;

View file

@ -36,7 +36,7 @@
#include "base/cprintf.hh" #include "base/cprintf.hh"
#include "base/trace.hh" #include "base/trace.hh"
#include "targetarch/faults.hh" #include "arch/faults.hh"
#include "cpu/exetrace.hh" #include "cpu/exetrace.hh"
#include "mem/mem_req.hh" #include "mem/mem_req.hh"

View file

@ -40,7 +40,7 @@
#include "sim/serialize.hh" #include "sim/serialize.hh"
#include "sim/sim_exit.hh" #include "sim/sim_exit.hh"
#include "sim/system.hh" #include "sim/system.hh"
#include "targetarch/stacktrace.hh" #include "arch/stacktrace.hh"
#else #else
#include "sim/process.hh" #include "sim/process.hh"
#endif #endif

View file

@ -46,7 +46,7 @@ class BaseCPU;
#if FULL_SYSTEM #if FULL_SYSTEM
#include "sim/system.hh" #include "sim/system.hh"
#include "targetarch/alpha_memory.hh" #include "arch/alpha_memory.hh"
class FunctionProfile; class FunctionProfile;
class ProfileNode; class ProfileNode;

View file

@ -50,8 +50,8 @@
#include "mem/functional/memory_control.hh" #include "mem/functional/memory_control.hh"
#include "mem/functional/physical.hh" #include "mem/functional/physical.hh"
#include "sim/system.hh" #include "sim/system.hh"
#include "targetarch/alpha_memory.hh" #include "arch/alpha_memory.hh"
#include "targetarch/vtophys.hh" #include "arch/vtophys.hh"
#else // !FULL_SYSTEM #else // !FULL_SYSTEM
#include "mem/functional/functional.hh" #include "mem/functional/functional.hh"
#endif // FULL_SYSTEM #endif // FULL_SYSTEM

View file

@ -50,7 +50,7 @@
#include "sim/process.hh" #include "sim/process.hh"
#if FULL_SYSTEM #if FULL_SYSTEM
#include "targetarch/ev5.hh" #include "arch/ev5.hh"
using namespace EV5; using namespace EV5;
#endif #endif

View file

@ -32,13 +32,13 @@
// @todo: Destructor // @todo: Destructor
#include "arch/isa_traits.hh" #include "arch/isa_traits.hh"
#include "targetarch/faults.hh" #include "arch/faults.hh"
#include "base/trace.hh" #include "base/trace.hh"
#include "config/full_system.hh" #include "config/full_system.hh"
#include "cpu/o3/comm.hh" #include "cpu/o3/comm.hh"
#if FULL_SYSTEM #if FULL_SYSTEM
#include "targetarch/ev5.hh" #include "arch/ev5.hh"
#include "kern/kernel_stats.hh" #include "kern/kernel_stats.hh"
using namespace EV5; using namespace EV5;

View file

@ -33,7 +33,7 @@
#include "cpu/static_inst.hh" #include "cpu/static_inst.hh"
#include "sim/host.hh" #include "sim/host.hh"
#include "targetarch/stacktrace.hh" #include "arch/stacktrace.hh"
class ProfileNode class ProfileNode
{ {

View file

@ -67,9 +67,9 @@
#include "mem/functional/memory_control.hh" #include "mem/functional/memory_control.hh"
#include "mem/functional/physical.hh" #include "mem/functional/physical.hh"
#include "sim/system.hh" #include "sim/system.hh"
#include "targetarch/alpha_memory.hh" #include "arch/alpha_memory.hh"
#include "targetarch/stacktrace.hh" #include "arch/stacktrace.hh"
#include "targetarch/vtophys.hh" #include "arch/vtophys.hh"
#else // !FULL_SYSTEM #else // !FULL_SYSTEM
#include "mem/functional/functional.hh" #include "mem/functional/functional.hh"
#endif // FULL_SYSTEM #endif // FULL_SYSTEM

View file

@ -49,7 +49,7 @@
#include "sim/debug.hh" #include "sim/debug.hh"
#include "sim/host.hh" #include "sim/host.hh"
#include "sim/stats.hh" #include "sim/stats.hh"
#include "targetarch/vtophys.hh" #include "arch/vtophys.hh"
const char *NsRxStateStrings[] = const char *NsRxStateStrings[] =
{ {

View file

@ -47,7 +47,7 @@
#include "sim/eventq.hh" #include "sim/eventq.hh"
#include "sim/host.hh" #include "sim/host.hh"
#include "sim/stats.hh" #include "sim/stats.hh"
#include "targetarch/vtophys.hh" #include "arch/vtophys.hh"
using namespace Net; using namespace Net;
using namespace TheISA; using namespace TheISA;

View file

@ -41,7 +41,7 @@
#include "sim/builder.hh" #include "sim/builder.hh"
#include "arch/isa_traits.hh" #include "arch/isa_traits.hh"
#include "sim/byteswap.hh" #include "sim/byteswap.hh"
#include "targetarch/vtophys.hh" #include "arch/vtophys.hh"
#define TIMER_FREQUENCY 1193180 #define TIMER_FREQUENCY 1193180

View file

@ -46,8 +46,8 @@
#include "sim/builder.hh" #include "sim/builder.hh"
#include "sim/byteswap.hh" #include "sim/byteswap.hh"
#include "dev/platform.hh" #include "dev/platform.hh"
#include "targetarch/arguments.hh" #include "arch/arguments.hh"
#include "targetarch/vtophys.hh" #include "arch/vtophys.hh"
using namespace std; using namespace std;
using namespace TheISA; using namespace TheISA;

View file

@ -30,7 +30,7 @@
#include <algorithm> #include <algorithm>
#include "base/trace.hh" #include "base/trace.hh"
#include "targetarch/arguments.hh" #include "arch/arguments.hh"
using namespace std; using namespace std;

View file

@ -34,9 +34,9 @@
#include "cpu/exec_context.hh" #include "cpu/exec_context.hh"
#include "kern/tru64/mbuf.hh" #include "kern/tru64/mbuf.hh"
#include "sim/host.hh" #include "sim/host.hh"
#include "targetarch/arguments.hh" #include "arch/arguments.hh"
#include "arch/isa_traits.hh" #include "arch/isa_traits.hh"
#include "targetarch/vtophys.hh" #include "arch/vtophys.hh"
using namespace TheISA; using namespace TheISA;

View file

@ -32,8 +32,8 @@
#include "base/cprintf.hh" #include "base/cprintf.hh"
#include "base/trace.hh" #include "base/trace.hh"
#include "sim/host.hh" #include "sim/host.hh"
#include "targetarch/arguments.hh" #include "arch/arguments.hh"
#include "targetarch/vtophys.hh" #include "arch/vtophys.hh"
using namespace std; using namespace std;

View file

@ -33,7 +33,7 @@
#include "kern/tru64/dump_mbuf.hh" #include "kern/tru64/dump_mbuf.hh"
#include "kern/tru64/printf.hh" #include "kern/tru64/printf.hh"
#include "mem/functional/memory_control.hh" #include "mem/functional/memory_control.hh"
#include "targetarch/arguments.hh" #include "arch/arguments.hh"
#include "arch/isa_traits.hh" #include "arch/isa_traits.hh"
using namespace TheISA; using namespace TheISA;

View file

@ -37,7 +37,7 @@
#include "mem/functional/physical.hh" #include "mem/functional/physical.hh"
#include "sim/builder.hh" #include "sim/builder.hh"
#include "arch/isa_traits.hh" #include "arch/isa_traits.hh"
#include "targetarch/vtophys.hh" #include "arch/vtophys.hh"
using namespace std; using namespace std;

View file

@ -48,8 +48,8 @@
#include "sim/stats.hh" #include "sim/stats.hh"
#include "sim/syscall_emul.hh" #include "sim/syscall_emul.hh"
#include "targetarch/alpha_tru64_process.hh" #include "arch/alpha_tru64_process.hh"
#include "targetarch/alpha_linux_process.hh" #include "arch/alpha_linux_process.hh"
using namespace std; using namespace std;
using namespace TheISA; using namespace TheISA;

View file

@ -34,7 +34,7 @@
#include <string> #include <string>
#include "sim/pseudo_inst.hh" #include "sim/pseudo_inst.hh"
#include "targetarch/vtophys.hh" #include "arch/vtophys.hh"
#include "cpu/base.hh" #include "cpu/base.hh"
#include "cpu/sampler/sampler.hh" #include "cpu/sampler/sampler.hh"
#include "cpu/exec_context.hh" #include "cpu/exec_context.hh"

View file

@ -33,7 +33,7 @@
#include "kern/kernel_stats.hh" #include "kern/kernel_stats.hh"
#include "mem/functional/memory_control.hh" #include "mem/functional/memory_control.hh"
#include "mem/functional/physical.hh" #include "mem/functional/physical.hh"
#include "targetarch/vtophys.hh" #include "arch/vtophys.hh"
#include "sim/builder.hh" #include "sim/builder.hh"
#include "arch/isa_traits.hh" #include "arch/isa_traits.hh"
#include "sim/byteswap.hh" #include "sim/byteswap.hh"

View file

@ -29,7 +29,7 @@
#ifndef __ARCH_ALPHA_VPTR_HH__ #ifndef __ARCH_ALPHA_VPTR_HH__
#define __ARCH_ALPHA_VPTR_HH__ #define __ARCH_ALPHA_VPTR_HH__
#include "targetarch/vtophys.hh" #include "arch/vtophys.hh"
#include "arch/isa_traits.hh" #include "arch/isa_traits.hh"
class ExecContext; class ExecContext;