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



src/arch/alpha/isa/mem.isa
<http://reviews.m5sim.org/r/750/#comment1796>

    I have a couple of issues:
    1) Where did the byte swapping come from?  I don't see it elsewhere.
    
    2) We've never used typeof before.  Should we start?  In the future 
(c++0x), we'll have auto, but typeof is nonstandard.
    
    Would it be bad to do the following?
    
    Mem = htog(Mem)
    and then just use Mem as the parameter to that function?  Updating in place 
could of course be sketchy if the value is not ephemeral.
    
    If it is, could we not simply use:
    uint%(mem_acc_size)d_t gMem = htog(Mem);
    
    There are other options involving templates too.
    


- Nathan


On 2011-06-20 11:43:52, Gabe Black wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.m5sim.org/r/750/
> -----------------------------------------------------------
> 
> (Updated 2011-06-20 11:43:52)
> 
> 
> Review request for Default, Ali Saidi, Gabe Black, Steve Reinhardt, and 
> Nathan Binkert.
> 
> 
> Summary
> -------
> 
> ISA: Use readBytes/writeBytes for all instruction level memory operations.
> 
> 
> Diffs
> -----
> 
>   src/arch/alpha/isa/mem.isa f12d1cd32cc7 
>   src/arch/arm/isa/templates/mem.isa f12d1cd32cc7 
>   src/arch/mips/isa/formats/mem.isa f12d1cd32cc7 
>   src/arch/power/isa/formats/mem.isa f12d1cd32cc7 
>   src/arch/sparc/isa/formats/mem/swap.isa f12d1cd32cc7 
>   src/arch/sparc/isa/formats/mem/util.isa f12d1cd32cc7 
>   src/arch/x86/insts/microldstop.hh f12d1cd32cc7 
>   src/arch/x86/isa/microops/ldstop.isa f12d1cd32cc7 
> 
> Diff: http://reviews.m5sim.org/r/750/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Gabe
> 
>

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

Reply via email to