> On 2011-12-03 13:37:20, Steve Reinhardt wrote:
> > src/cpu/base_dyn_inst.hh, line 568
> > <http://reviews.m5sim.org/r/910/diff/2/?file=15594#file15594line568>
> >
> >     Can we find a way to replace all this stuff with a single templated 
> > method?  I think if you add some helper methods to Result like this:
> >     union Result {
> >         [...]
> >         void set(uint64_t i) { integer = i; }
> >         void set(double d) { dbl = d; }
> >         void get(uint64_t &i) { i = integer; }
> >         void get(double &d) { d = dbl; }
> >     }
> >     
> >     then you could replace these with
> >     
> >     template <class T>
> >     T popResult() {
> >        [blah blah]
> >     }
> >     
> >     and maybe clean up some of the other existing code as well.
> >

I'll see what I can do with this part of the code to make it cleaner if I can.


- Geoffrey


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviews.m5sim.org/r/910/#review1723
-----------------------------------------------------------


On 2011-11-28 10:07:14, Geoffrey Blake wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.m5sim.org/r/910/
> -----------------------------------------------------------
> 
> (Updated 2011-11-28 10:07:14)
> 
> 
> Review request for Default, Ali Saidi, Gabe Black, Steve Reinhardt, and 
> Nathan Binkert.
> 
> 
> Summary
> -------
> 
> CheckerCPU: Re-factor CheckerCPU to be compatible with current gem5
> 
> Brings the CheckerCPU back to a functioning state allowing FS and SE mode
> checking of the O3CPU. These changes have only been tested with the
> ARM ISA.  Other ISAs will potentially require modification.
> 
> 
> Diffs
> -----
> 
>   build_opts/ARM_wCHECKER_FS PRE-CREATION 
>   build_opts/ARM_wCHECKER_SE PRE-CREATION 
>   src/arch/arm/isa.cc 62dee0c98d53 
>   src/arch/arm/isa/insts/m5ops.isa 62dee0c98d53 
>   src/arch/arm/isa/insts/misc.isa 62dee0c98d53 
>   src/arch/arm/table_walker.hh 62dee0c98d53 
>   src/arch/arm/table_walker.cc 62dee0c98d53 
>   src/arch/arm/tlb.hh 62dee0c98d53 
>   src/arch/arm/tlb.cc 62dee0c98d53 
>   src/arch/arm/utility.cc 62dee0c98d53 
>   src/cpu/BaseCPU.py 62dee0c98d53 
>   src/cpu/CheckerCPU.py 62dee0c98d53 
>   src/cpu/DummyChecker.py PRE-CREATION 
>   src/cpu/SConscript 62dee0c98d53 
>   src/cpu/base.cc 62dee0c98d53 
>   src/cpu/base_dyn_inst.hh 62dee0c98d53 
>   src/cpu/base_dyn_inst_impl.hh 62dee0c98d53 
>   src/cpu/checker/cpu.hh 62dee0c98d53 
>   src/cpu/checker/cpu.cc 62dee0c98d53 
>   src/cpu/checker/cpu_impl.hh 62dee0c98d53 
>   src/cpu/checker/thread_context.hh 62dee0c98d53 
>   src/cpu/dummy_checker_builder.cc PRE-CREATION 
>   src/cpu/o3/O3CPU.py 62dee0c98d53 
>   src/cpu/o3/O3Checker.py 62dee0c98d53 
>   src/cpu/o3/checker_builder.cc 62dee0c98d53 
>   src/cpu/o3/commit_impl.hh 62dee0c98d53 
>   src/cpu/o3/cpu.hh 62dee0c98d53 
>   src/cpu/o3/cpu.cc 62dee0c98d53 
>   src/cpu/o3/dyn_inst_impl.hh 62dee0c98d53 
>   src/cpu/o3/fetch_impl.hh 62dee0c98d53 
>   src/cpu/o3/iew_impl.hh 62dee0c98d53 
>   src/cpu/o3/lsq_unit_impl.hh 62dee0c98d53 
>   src/cpu/o3/thread_context.hh 62dee0c98d53 
>   src/cpu/o3/thread_context_impl.hh 62dee0c98d53 
>   src/cpu/simple/BaseSimpleCPU.py 62dee0c98d53 
>   src/cpu/simple/base.hh 62dee0c98d53 
>   src/cpu/simple/base.cc 62dee0c98d53 
>   src/cpu/simple_thread.hh 62dee0c98d53 
>   src/cpu/thread_context.hh 62dee0c98d53 
>   src/mem/bus.cc 62dee0c98d53 
> 
> Diff: http://reviews.m5sim.org/r/910/diff
> 
> 
> Testing
> -------
> 
> Successfully runs gzip in SE mode.  Successfully boots linux kernel in FS 
> mode.  Works with checkpoints and fast-forwarding. Testing with buggy O3CPUs 
> to test checker's capabilities.
> 
> 
> Thanks,
> 
> Geoffrey
> 
>

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

Reply via email to