From: Gabe Black Date: Sat, 12 Aug 2006 00:29:15 +0000 (-0400) Subject: Started to add support for O3 for sparc. X-Git-Tag: m5_2.0_beta1~42 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc8b4f52537dafdfe10a9be912fe3f069d8a570d;p=gem5.git Started to add support for O3 for sparc. --HG-- extra : convert_revision : 3f94bda14024a09b9fbd7a5d13284d4987349ddf --- diff --git a/src/cpu/o3/SConscript b/src/cpu/o3/SConscript index 44882e5ec..afbd4c533 100755 --- a/src/cpu/o3/SConscript +++ b/src/cpu/o3/SConscript @@ -59,13 +59,12 @@ elif env['TARGET_ISA'] == 'mips': mips/cpu_builder.cc ''') elif env['TARGET_ISA'] == 'sparc': - sys.exit('O3 CPU does not support Sparc') - #sources += Split(''' - # sparc/dyn_inst.cc - # sparc/cpu.cc - # sparc/thread_context.cc - # sparc/cpu_builder.cc - # ''') + sources += Split(''' + sparc/dyn_inst.cc + sparc/cpu.cc + sparc/thread_context.cc + sparc/cpu_builder.cc + ''') else: sys.exit('O3 CPU does not support the \'%s\' ISA' % env['TARGET_ISA']) diff --git a/src/cpu/o3/dyn_inst.hh b/src/cpu/o3/dyn_inst.hh index 5f7caf79f..279513493 100644 --- a/src/cpu/o3/dyn_inst.hh +++ b/src/cpu/o3/dyn_inst.hh @@ -41,6 +41,10 @@ template class MipsDynInst; struct MipsSimpleImpl; typedef MipsDynInst O3DynInst; +#elif THE_ISA == SPARC_ISA + template class SparcDynInst; + struct SparcSimpleImpl; + typedef SparcDynInst O3DynInst; #else #error "O3DynInst not defined for this ISA" #endif