> On Feb. 9, 2012, 2:03 a.m., Gabe Black wrote:
> > src/cpu/checker/cpu_impl.hh, line 484
> > <http://reviews.gem5.org/r/1032/diff/1/?file=23069#file23069line484>
> >
> >     You're checking for x86 here too. It's normally equivalent and 
> > generally harmless to compare ExtMachInsts instead of MachInsts. The 
> > difference is that the ExtMachInsts have been contextualized and the 
> > MachInsts are just the raw bytes from memory. In the x86 case exactly what 
> > should be the MachInst is ambiguous, but not the ExtMachInst.

The original checker code assumes that a ExtMachInst and MachInst are 
equivalent and can be casted to each other.  For the RISC ISAs (ARM, POWER, 
MIPS, SPARC) this works.  As you say x86 doesn't behave this way and the x86 
code won't compile.  This is just to make sure gem5 compiles.  The Checker 
really needs to be fixed to compare ExtMachInsts in the future so it works with 
all ISAs.  


> On Feb. 9, 2012, 2:03 a.m., Gabe Black wrote:
> > src/cpu/o3/iew_impl.hh, line 1620
> > <http://reviews.gem5.org/r/1032/diff/1/?file=23072#file23072line1620>
> >
> >     This looks pretty strange. Was this dead code? Did you bring it back to 
> > life here on purpose? Or in other words, is reintroducing it the right 
> > thing to do, or is it obsolete code?

It was guarded by a #ifdef TARGET_ALPHA which has somewhere along the way 
ceased to exist.  Not sure if it's dead code or not.  If it is I'll just remove 
it.


- Geoffrey


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviews.gem5.org/r/1032/#review2099
-----------------------------------------------------------


On Feb. 8, 2012, 7:46 a.m., Geoffrey Blake wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.gem5.org/r/1032/
> -----------------------------------------------------------
> 
> (Updated Feb. 8, 2012, 7:46 a.m.)
> 
> 
> Review request for Default.
> 
> 
> Description
> -------
> 
> CheckerCPU: Add function stubs to non-ARM ISA source to compile with 
> CheckerCPU
> 
> Making the CheckerCPU a runtime time option requires the code to be compatible
> with ISAs other than ARM.  This patch adds the appropriate function
> stubs to allow compilation.
> 
> 
> Diffs
> -----
> 
>   src/arch/alpha/tlb.hh 8f354c5a1634 
>   src/arch/alpha/tlb.cc 8f354c5a1634 
>   src/arch/mips/tlb.hh 8f354c5a1634 
>   src/arch/mips/tlb.cc 8f354c5a1634 
>   src/arch/power/tlb.hh 8f354c5a1634 
>   src/arch/power/tlb.cc 8f354c5a1634 
>   src/arch/sparc/tlb.hh 8f354c5a1634 
>   src/arch/sparc/tlb.cc 8f354c5a1634 
>   src/arch/x86/tlb.hh 8f354c5a1634 
>   src/arch/x86/tlb.cc 8f354c5a1634 
>   src/cpu/checker/cpu.hh 8f354c5a1634 
>   src/cpu/checker/cpu_impl.hh 8f354c5a1634 
>   src/cpu/inorder/thread_context.hh 8f354c5a1634 
>   src/cpu/o3/commit_impl.hh 8f354c5a1634 
>   src/cpu/o3/iew_impl.hh 8f354c5a1634 
>   src/cpu/ozone/back_end_impl.hh 8f354c5a1634 
>   src/cpu/ozone/lw_back_end_impl.hh 8f354c5a1634 
> 
> Diff: http://reviews.gem5.org/r/1032/diff/diff
> 
> 
> Testing
> -------
> 
> Compiles for all ISAs.
> 
> 
> Thanks,
> 
> Geoffrey Blake
> 
>

_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to