Merge ktlim@zizzer:/bk/newmem
into zamp.eecs.umich.edu:/z/ktlim2/clean/newmem-merge --HG-- extra : convert_revision : 037fe9ee54da7e11c2bd07388b9f79cda9abef4c
This commit is contained in:
commit
bc3d009aba
13 changed files with 224 additions and 111 deletions
|
@ -475,10 +475,6 @@ for build_path in build_paths:
|
||||||
env.ParseConfig(mysql_config_libs)
|
env.ParseConfig(mysql_config_libs)
|
||||||
env.ParseConfig(mysql_config_include)
|
env.ParseConfig(mysql_config_include)
|
||||||
|
|
||||||
# Check if the Checker is being used. If so append it to env['CPU_MODELS']
|
|
||||||
if env['USE_CHECKER']:
|
|
||||||
env['CPU_MODELS'].append('CheckerCPU')
|
|
||||||
|
|
||||||
# Save sticky option settings back to current options file
|
# Save sticky option settings back to current options file
|
||||||
sticky_opts.Save(current_opts_file, env)
|
sticky_opts.Save(current_opts_file, env)
|
||||||
|
|
||||||
|
|
|
@ -128,6 +128,11 @@ isa_desc_gen_files = Split('decoder.cc decoder.hh')
|
||||||
isa_desc_gen_files += [CpuModel.dict[cpu].filename
|
isa_desc_gen_files += [CpuModel.dict[cpu].filename
|
||||||
for cpu in env['CPU_MODELS']]
|
for cpu in env['CPU_MODELS']]
|
||||||
|
|
||||||
|
# Also include the CheckerCPU as one of the models if it is being
|
||||||
|
# enabled via command line.
|
||||||
|
if env['USE_CHECKER']:
|
||||||
|
isa_desc_gen_files += [CpuModel.dict['CheckerCPU'].filename]
|
||||||
|
|
||||||
# The emitter patches up the sources & targets to include the
|
# The emitter patches up the sources & targets to include the
|
||||||
# autogenerated files as targets and isa parser itself as a source.
|
# autogenerated files as targets and isa parser itself as a source.
|
||||||
def isa_desc_emitter(target, source, env):
|
def isa_desc_emitter(target, source, env):
|
||||||
|
|
|
@ -68,6 +68,13 @@ mem_comp_sig_template = '''
|
||||||
virtual Fault completeAcc(uint8_t *data, %s *xc, Trace::InstRecord *traceData) const { panic("Not defined!"); return NoFault; };
|
virtual Fault completeAcc(uint8_t *data, %s *xc, Trace::InstRecord *traceData) const { panic("Not defined!"); return NoFault; };
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
# Generate a temporary CPU list, including the CheckerCPU if
|
||||||
|
# it's enabled. This isn't used for anything else other than StaticInst
|
||||||
|
# headers.
|
||||||
|
temp_cpu_list = env['CPU_MODELS']
|
||||||
|
if env['USE_CHECKER']:
|
||||||
|
temp_cpu_list.append('CheckerCPU')
|
||||||
|
|
||||||
# Generate header.
|
# Generate header.
|
||||||
def gen_cpu_exec_signatures(target, source, env):
|
def gen_cpu_exec_signatures(target, source, env):
|
||||||
f = open(str(target[0]), 'w')
|
f = open(str(target[0]), 'w')
|
||||||
|
@ -75,7 +82,7 @@ def gen_cpu_exec_signatures(target, source, env):
|
||||||
#ifndef __CPU_STATIC_INST_EXEC_SIGS_HH__
|
#ifndef __CPU_STATIC_INST_EXEC_SIGS_HH__
|
||||||
#define __CPU_STATIC_INST_EXEC_SIGS_HH__
|
#define __CPU_STATIC_INST_EXEC_SIGS_HH__
|
||||||
'''
|
'''
|
||||||
for cpu in env['CPU_MODELS']:
|
for cpu in temp_cpu_list:
|
||||||
xc_type = CpuModel.dict[cpu].strings['CPU_exec_context']
|
xc_type = CpuModel.dict[cpu].strings['CPU_exec_context']
|
||||||
print >> f, exec_sig_template % (xc_type, xc_type, xc_type)
|
print >> f, exec_sig_template % (xc_type, xc_type, xc_type)
|
||||||
print >> f, '''
|
print >> f, '''
|
||||||
|
@ -85,12 +92,14 @@ def gen_cpu_exec_signatures(target, source, env):
|
||||||
# Generate string that gets printed when header is rebuilt
|
# Generate string that gets printed when header is rebuilt
|
||||||
def gen_sigs_string(target, source, env):
|
def gen_sigs_string(target, source, env):
|
||||||
return "Generating static_inst_exec_sigs.hh: " \
|
return "Generating static_inst_exec_sigs.hh: " \
|
||||||
+ ', '.join(env['CPU_MODELS'])
|
+ ', '.join(temp_cpu_list)
|
||||||
|
|
||||||
# Add command to generate header to environment.
|
# Add command to generate header to environment.
|
||||||
env.Command('static_inst_exec_sigs.hh', models_db,
|
env.Command('static_inst_exec_sigs.hh', models_db,
|
||||||
Action(gen_cpu_exec_signatures, gen_sigs_string,
|
Action(gen_cpu_exec_signatures, gen_sigs_string,
|
||||||
varlist = ['CPU_MODELS']))
|
varlist = temp_cpu_list))
|
||||||
|
|
||||||
|
env.Depends('static_inst_exec_sigs.hh', Value(env['USE_CHECKER']))
|
||||||
|
|
||||||
# List of suppported CPUs by the Checker. Errors out if USE_CHECKER=True
|
# List of suppported CPUs by the Checker. Errors out if USE_CHECKER=True
|
||||||
# and one of these are not being used.
|
# and one of these are not being used.
|
||||||
|
@ -122,11 +131,11 @@ if 'FastCPU' in env['CPU_MODELS']:
|
||||||
|
|
||||||
if 'AlphaO3CPU' in env['CPU_MODELS']:
|
if 'AlphaO3CPU' in env['CPU_MODELS']:
|
||||||
sources += Split('''
|
sources += Split('''
|
||||||
base_dyn_inst.cc
|
|
||||||
o3/2bit_local_pred.cc
|
o3/2bit_local_pred.cc
|
||||||
o3/alpha_dyn_inst.cc
|
o3/alpha_dyn_inst.cc
|
||||||
o3/alpha_cpu.cc
|
o3/alpha_cpu.cc
|
||||||
o3/alpha_cpu_builder.cc
|
o3/alpha_cpu_builder.cc
|
||||||
|
o3/base_dyn_inst.cc
|
||||||
o3/bpred_unit.cc
|
o3/bpred_unit.cc
|
||||||
o3/btb.cc
|
o3/btb.cc
|
||||||
o3/commit.cc
|
o3/commit.cc
|
||||||
|
@ -148,8 +157,8 @@ if 'AlphaO3CPU' in env['CPU_MODELS']:
|
||||||
o3/store_set.cc
|
o3/store_set.cc
|
||||||
o3/tournament_pred.cc
|
o3/tournament_pred.cc
|
||||||
''')
|
''')
|
||||||
if 'CheckerCPU' in env['CPU_MODELS']:
|
if env['USE_CHECKER']:
|
||||||
sources += Split('checker/o3_builder.cc')
|
sources += Split('o3/checker_builder.cc')
|
||||||
|
|
||||||
if 'OzoneSimpleCPU' in env['CPU_MODELS']:
|
if 'OzoneSimpleCPU' in env['CPU_MODELS']:
|
||||||
sources += Split('''
|
sources += Split('''
|
||||||
|
@ -161,18 +170,19 @@ if 'OzoneSimpleCPU' in env['CPU_MODELS']:
|
||||||
ozone/inst_queue.cc
|
ozone/inst_queue.cc
|
||||||
ozone/rename_table.cc
|
ozone/rename_table.cc
|
||||||
''')
|
''')
|
||||||
if 'CheckerCPU' in env['CPU_MODELS']:
|
|
||||||
sources += Split('checker/ozone_builder.cc')
|
|
||||||
|
|
||||||
if 'OzoneCPU' in env['CPU_MODELS']:
|
if 'OzoneCPU' in env['CPU_MODELS']:
|
||||||
sources += Split('''
|
sources += Split('''
|
||||||
|
ozone/base_dyn_inst.cc
|
||||||
|
ozone/bpred_unit.cc
|
||||||
ozone/lsq_unit.cc
|
ozone/lsq_unit.cc
|
||||||
ozone/lw_back_end.cc
|
ozone/lw_back_end.cc
|
||||||
ozone/lw_lsq.cc
|
ozone/lw_lsq.cc
|
||||||
''')
|
''')
|
||||||
|
if env['USE_CHECKER']:
|
||||||
|
sources += Split('ozone/checker_builder.cc')
|
||||||
|
|
||||||
if 'CheckerCPU' in env['CPU_MODELS']:
|
if env['USE_CHECKER']:
|
||||||
sources += Split('checker/cpu.cc')
|
|
||||||
checker_supports = False
|
checker_supports = False
|
||||||
for i in CheckerSupportedCPUList:
|
for i in CheckerSupportedCPUList:
|
||||||
if i in env['CPU_MODELS']:
|
if i in env['CPU_MODELS']:
|
||||||
|
|
|
@ -41,10 +41,6 @@
|
||||||
#include "mem/request.hh"
|
#include "mem/request.hh"
|
||||||
|
|
||||||
#include "cpu/base_dyn_inst.hh"
|
#include "cpu/base_dyn_inst.hh"
|
||||||
#include "cpu/o3/alpha_impl.hh"
|
|
||||||
#include "cpu/o3/alpha_cpu.hh"
|
|
||||||
//#include "cpu/ozone/simple_impl.hh"
|
|
||||||
//#include "cpu/ozone/ozone_impl.hh"
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace TheISA;
|
using namespace TheISA;
|
||||||
|
@ -301,25 +297,3 @@ BaseDynInst<Impl>::eaSrcsReady()
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Forward declaration
|
|
||||||
template class BaseDynInst<AlphaSimpleImpl>;
|
|
||||||
|
|
||||||
template <>
|
|
||||||
int
|
|
||||||
BaseDynInst<AlphaSimpleImpl>::instcount = 0;
|
|
||||||
/*
|
|
||||||
// Forward declaration
|
|
||||||
template class BaseDynInst<SimpleImpl>;
|
|
||||||
|
|
||||||
template <>
|
|
||||||
int
|
|
||||||
BaseDynInst<SimpleImpl>::instcount = 0;
|
|
||||||
|
|
||||||
// Forward declaration
|
|
||||||
template class BaseDynInst<OzoneImpl>;
|
|
||||||
|
|
||||||
template <>
|
|
||||||
int
|
|
||||||
BaseDynInst<OzoneImpl>::instcount = 0;
|
|
||||||
*/
|
|
|
@ -43,16 +43,10 @@
|
||||||
#include "sim/sim_object.hh"
|
#include "sim/sim_object.hh"
|
||||||
#include "sim/stats.hh"
|
#include "sim/stats.hh"
|
||||||
|
|
||||||
#include "cpu/o3/alpha_dyn_inst.hh"
|
|
||||||
#include "cpu/o3/alpha_impl.hh"
|
|
||||||
|
|
||||||
//#include "cpu/ozone/dyn_inst.hh"
|
|
||||||
//#include "cpu/ozone/ozone_impl.hh"
|
|
||||||
//#include "cpu/ozone/simple_impl.hh"
|
|
||||||
|
|
||||||
#if FULL_SYSTEM
|
#if FULL_SYSTEM
|
||||||
#include "sim/system.hh"
|
#include "sim/system.hh"
|
||||||
#include "arch/vtophys.hh"
|
#include "arch/vtophys.hh"
|
||||||
|
#include "kern/kernel_stats.hh"
|
||||||
#endif // FULL_SYSTEM
|
#endif // FULL_SYSTEM
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
@ -826,9 +820,3 @@ Checker<DynInstPtr>::dumpInsts()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//template
|
|
||||||
//class Checker<RefCountingPtr<OzoneDynInst<OzoneImpl> > >;
|
|
||||||
// Manually instantiate checker
|
|
||||||
template
|
|
||||||
class Checker<RefCountingPtr<AlphaDynInst<AlphaSimpleImpl> > >;
|
|
40
src/cpu/o3/base_dyn_inst.cc
Normal file
40
src/cpu/o3/base_dyn_inst.cc
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2006 The Regents of The University of Michigan
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions are
|
||||||
|
* met: redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer;
|
||||||
|
* redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
|
* documentation and/or other materials provided with the distribution;
|
||||||
|
* neither the name of the copyright holders nor the names of its
|
||||||
|
* contributors may be used to endorse or promote products derived from
|
||||||
|
* this software without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
* Authors: Kevin Lim
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "cpu/base_dyn_inst_impl.hh"
|
||||||
|
#include "cpu/o3/alpha_cpu.hh"
|
||||||
|
#include "cpu/o3/alpha_impl.hh"
|
||||||
|
|
||||||
|
// Explicit instantiation
|
||||||
|
template class BaseDynInst<AlphaSimpleImpl>;
|
||||||
|
|
||||||
|
template <>
|
||||||
|
int
|
||||||
|
BaseDynInst<AlphaSimpleImpl>::instcount = 0;
|
|
@ -31,9 +31,5 @@
|
||||||
#include "cpu/o3/bpred_unit_impl.hh"
|
#include "cpu/o3/bpred_unit_impl.hh"
|
||||||
#include "cpu/o3/alpha_impl.hh"
|
#include "cpu/o3/alpha_impl.hh"
|
||||||
#include "cpu/o3/alpha_dyn_inst.hh"
|
#include "cpu/o3/alpha_dyn_inst.hh"
|
||||||
//#include "cpu/ozone/ozone_impl.hh"
|
|
||||||
//#include "cpu/ozone/simple_impl.hh"
|
|
||||||
|
|
||||||
template class BPredUnit<AlphaSimpleImpl>;
|
template class BPredUnit<AlphaSimpleImpl>;
|
||||||
//template class BPredUnit<OzoneImpl>;
|
|
||||||
//template class BPredUnit<SimpleImpl>;
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "cpu/checker/cpu.hh"
|
#include "cpu/checker/cpu_impl.hh"
|
||||||
#include "cpu/inst_seq.hh"
|
#include "cpu/inst_seq.hh"
|
||||||
#include "cpu/o3/alpha_dyn_inst.hh"
|
#include "cpu/o3/alpha_dyn_inst.hh"
|
||||||
#include "cpu/o3/alpha_impl.hh"
|
#include "cpu/o3/alpha_impl.hh"
|
||||||
|
@ -40,6 +40,9 @@
|
||||||
|
|
||||||
class MemObject;
|
class MemObject;
|
||||||
|
|
||||||
|
template
|
||||||
|
class Checker<RefCountingPtr<AlphaDynInst<AlphaSimpleImpl> > >;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specific non-templated derived class used for SimObject configuration.
|
* Specific non-templated derived class used for SimObject configuration.
|
||||||
*/
|
*/
|
36
src/cpu/ozone/bpred_unit.cc
Normal file
36
src/cpu/ozone/bpred_unit.cc
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2004-2006 The Regents of The University of Michigan
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions are
|
||||||
|
* met: redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer;
|
||||||
|
* redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
|
* documentation and/or other materials provided with the distribution;
|
||||||
|
* neither the name of the copyright holders nor the names of its
|
||||||
|
* contributors may be used to endorse or promote products derived from
|
||||||
|
* this software without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
* Authors: Kevin Lim
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "cpu/o3/bpred_unit_impl.hh"
|
||||||
|
#include "cpu/ozone/ozone_impl.hh"
|
||||||
|
#include "cpu/ozone/simple_impl.hh"
|
||||||
|
|
||||||
|
template class BPredUnit<OzoneImpl>;
|
||||||
|
template class BPredUnit<SimpleImpl>;
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "cpu/checker/cpu.hh"
|
#include "cpu/checker/cpu_impl.hh"
|
||||||
#include "cpu/inst_seq.hh"
|
#include "cpu/inst_seq.hh"
|
||||||
#include "cpu/ozone/dyn_inst.hh"
|
#include "cpu/ozone/dyn_inst.hh"
|
||||||
#include "cpu/ozone/ozone_impl.hh"
|
#include "cpu/ozone/ozone_impl.hh"
|
||||||
|
@ -39,6 +39,9 @@
|
||||||
#include "sim/process.hh"
|
#include "sim/process.hh"
|
||||||
#include "sim/sim_object.hh"
|
#include "sim/sim_object.hh"
|
||||||
|
|
||||||
|
template
|
||||||
|
class Checker<RefCountingPtr<OzoneDynInst<OzoneImpl> > >;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specific non-templated derived class used for SimObject configuration.
|
* Specific non-templated derived class used for SimObject configuration.
|
||||||
*/
|
*/
|
39
src/cpu/ozone/ozone_base_dyn_inst.cc
Normal file
39
src/cpu/ozone/ozone_base_dyn_inst.cc
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2006 The Regents of The University of Michigan
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions are
|
||||||
|
* met: redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer;
|
||||||
|
* redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
|
* documentation and/or other materials provided with the distribution;
|
||||||
|
* neither the name of the copyright holders nor the names of its
|
||||||
|
* contributors may be used to endorse or promote products derived from
|
||||||
|
* this software without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
* Authors: Kevin Lim
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "cpu/base_dyn_inst_impl.hh"
|
||||||
|
#include "cpu/ozone/ozone_impl.hh"
|
||||||
|
|
||||||
|
// Explicit instantiation
|
||||||
|
template class BaseDynInst<OzoneImpl>;
|
||||||
|
|
||||||
|
template <>
|
||||||
|
int
|
||||||
|
BaseDynInst<OzoneImpl>::instcount = 0;
|
39
src/cpu/ozone/simple_base_dyn_inst.cc
Normal file
39
src/cpu/ozone/simple_base_dyn_inst.cc
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2006 The Regents of The University of Michigan
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions are
|
||||||
|
* met: redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer;
|
||||||
|
* redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
|
* documentation and/or other materials provided with the distribution;
|
||||||
|
* neither the name of the copyright holders nor the names of its
|
||||||
|
* contributors may be used to endorse or promote products derived from
|
||||||
|
* this software without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
* Authors: Kevin Lim
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "cpu/base_dyn_inst_impl.hh"
|
||||||
|
#include "cpu/ozone/simple_impl.hh"
|
||||||
|
|
||||||
|
// Explicit instantiation
|
||||||
|
template class BaseDynInst<SimpleImpl>;
|
||||||
|
|
||||||
|
template <>
|
||||||
|
int
|
||||||
|
BaseDynInst<SimpleImpl>::instcount = 0;
|
|
@ -84,32 +84,32 @@ def setTraceStart(option, opt_str, value, parser):
|
||||||
def setTraceFile(option, opt_str, value, parser):
|
def setTraceFile(option, opt_str, value, parser):
|
||||||
objects.Trace.file = value
|
objects.Trace.file = value
|
||||||
|
|
||||||
def usePCSymbol(option, opt_str, value, parser):
|
def noPCSymbol(option, opt_str, value, parser):
|
||||||
objects.ExecutionTrace.pc_symbol = value
|
objects.ExecutionTrace.pc_symbol = False
|
||||||
|
|
||||||
def printCycle(option, opt_str, value, parser):
|
def noPrintCycle(option, opt_str, value, parser):
|
||||||
objects.ExecutionTrace.print_cycle = value
|
objects.ExecutionTrace.print_cycle = False
|
||||||
|
|
||||||
def printOp(option, opt_str, value, parser):
|
def noPrintOpclass(option, opt_str, value, parser):
|
||||||
objects.ExecutionTrace.print_opclass = value
|
objects.ExecutionTrace.print_opclass = False
|
||||||
|
|
||||||
def printThread(option, opt_str, value, parser):
|
def noPrintThread(option, opt_str, value, parser):
|
||||||
objects.ExecutionTrace.print_thread = value
|
objects.ExecutionTrace.print_thread = False
|
||||||
|
|
||||||
def printEA(option, opt_str, value, parser):
|
def noPrintEA(option, opt_str, value, parser):
|
||||||
objects.ExecutionTrace.print_effaddr = value
|
objects.ExecutionTrace.print_effaddr = False
|
||||||
|
|
||||||
def printData(option, opt_str, value, parser):
|
def noPrintData(option, opt_str, value, parser):
|
||||||
objects.ExecutionTrace.print_data = value
|
objects.ExecutionTrace.print_data = False
|
||||||
|
|
||||||
def printFetchseq(option, opt_str, value, parser):
|
def printFetchseq(option, opt_str, value, parser):
|
||||||
objects.ExecutionTrace.print_fetchseq = value
|
objects.ExecutionTrace.print_fetchseq = True
|
||||||
|
|
||||||
def printCpseq(option, opt_str, value, parser):
|
def printCpseq(option, opt_str, value, parser):
|
||||||
objects.ExecutionTrace.print_cpseq = value
|
objects.ExecutionTrace.print_cpseq = True
|
||||||
|
|
||||||
def dumpOnExit(option, opt_str, value, parser):
|
def dumpOnExit(option, opt_str, value, parser):
|
||||||
objects.Trace.dump_on_exit = value
|
objects.Trace.dump_on_exit = True
|
||||||
|
|
||||||
def debugBreak(option, opt_str, value, parser):
|
def debugBreak(option, opt_str, value, parser):
|
||||||
objects.Debug.break_cycles = value
|
objects.Debug.break_cycles = value
|
||||||
|
@ -131,47 +131,31 @@ standardOptions = [
|
||||||
callback=setTraceStart),
|
callback=setTraceStart),
|
||||||
optparse.make_option("--tracefile", type="string", action="callback",
|
optparse.make_option("--tracefile", type="string", action="callback",
|
||||||
callback=setTraceFile),
|
callback=setTraceFile),
|
||||||
optparse.make_option("--pcsymbol", type="choice", choices=TrueOrFalse,
|
optparse.make_option("--nopcsymbol",
|
||||||
default="True", metavar=TorF,
|
action="callback", callback=noPCSymbol,
|
||||||
action="callback", callback=usePCSymbol,
|
help="Disable PC symbols in trace output"),
|
||||||
help="Use PC symbols in trace output"),
|
optparse.make_option("--noprintcycle",
|
||||||
optparse.make_option("--printcycle", type="choice", choices=TrueOrFalse,
|
action="callback", callback=noPrintCycle,
|
||||||
default="True", metavar=TorF,
|
help="Don't print cycle numbers in trace output"),
|
||||||
action="callback", callback=printCycle,
|
optparse.make_option("--noprintopclass",
|
||||||
help="Print cycle numbers in trace output"),
|
action="callback", callback=noPrintOpclass,
|
||||||
optparse.make_option("--printopclass", type="choice",
|
help="Don't print op class type in trace output"),
|
||||||
choices=TrueOrFalse,
|
optparse.make_option("--noprintthread",
|
||||||
default="True", metavar=TorF,
|
action="callback", callback=noPrintThread,
|
||||||
action="callback", callback=printOp,
|
help="Don't print thread number in trace output"),
|
||||||
help="Print cycle numbers in trace output"),
|
optparse.make_option("--noprinteffaddr",
|
||||||
optparse.make_option("--printthread", type="choice",
|
action="callback", callback=noPrintEA,
|
||||||
choices=TrueOrFalse,
|
help="Don't print effective address in trace output"),
|
||||||
default="True", metavar=TorF,
|
optparse.make_option("--noprintdata",
|
||||||
action="callback", callback=printThread,
|
action="callback", callback=noPrintData,
|
||||||
help="Print thread number in trace output"),
|
help="Don't print result data in trace output"),
|
||||||
optparse.make_option("--printeffaddr", type="choice",
|
optparse.make_option("--printfetchseq",
|
||||||
choices=TrueOrFalse,
|
|
||||||
default="True", metavar=TorF,
|
|
||||||
action="callback", callback=printEA,
|
|
||||||
help="Print effective address in trace output"),
|
|
||||||
optparse.make_option("--printdata", type="choice",
|
|
||||||
choices=TrueOrFalse,
|
|
||||||
default="True", metavar=TorF,
|
|
||||||
action="callback", callback=printData,
|
|
||||||
help="Print result data in trace output"),
|
|
||||||
optparse.make_option("--printfetchseq", type="choice",
|
|
||||||
choices=TrueOrFalse,
|
|
||||||
default="True", metavar=TorF,
|
|
||||||
action="callback", callback=printFetchseq,
|
action="callback", callback=printFetchseq,
|
||||||
help="Print fetch sequence numbers in trace output"),
|
help="Print fetch sequence numbers in trace output"),
|
||||||
optparse.make_option("--printcpseq", type="choice",
|
optparse.make_option("--printcpseq",
|
||||||
choices=TrueOrFalse,
|
|
||||||
default="True", metavar=TorF,
|
|
||||||
action="callback", callback=printCpseq,
|
action="callback", callback=printCpseq,
|
||||||
help="Print correct path sequence numbers in trace output"),
|
help="Print correct path sequence numbers in trace output"),
|
||||||
optparse.make_option("--dumponexit", type="choice",
|
optparse.make_option("--dumponexit",
|
||||||
choices=TrueOrFalse,
|
|
||||||
default="True", metavar=TorF,
|
|
||||||
action="callback", callback=dumpOnExit,
|
action="callback", callback=dumpOnExit,
|
||||||
help="Dump trace buffer on exit"),
|
help="Dump trace buffer on exit"),
|
||||||
optparse.make_option("--debugbreak", type="int", metavar="CYCLE",
|
optparse.make_option("--debugbreak", type="int", metavar="CYCLE",
|
||||||
|
|
Loading…
Reference in a new issue