This should fix it: http://reviews.gem5.org/r/2078/
Andreas On 05/11/2013 16:13, "Nilay Vaish" <[email protected]> wrote: >Hi > >I receive the following error while compiling gem5.fast for the x86 >architecture. I tried several different versions of gcc. Versions 4.8.2, >4.7.3, 4.5.4 throw this error, while 4.4.7 does not. I took a look at the >code, but could not figure if there was anything wrong with it. > > >In file included from build/X86/cpu/checker/cpu.hh:56:0, > from build/X86/cpu/base_dyn_inst.hh:57, > from build/X86/cpu/checker/cpu_impl.hh:55, > from build/X86/cpu/o3/checker.cc:43: >build/X86/cpu/checker/cpu_impl.hh: In member function >'Checker<O3CPUImpl>::copyResult(RefCountingPtr<BaseO3DynInst<O3CPUImpl> >>&, unsigned long, int)': >build/X86/cpu/simple_thread.hh:441:55: error: array subscript is above >array bounds [-Werror=array-bounds] > void setCCRegFlat(int idx, CCReg val) { ccRegs[idx] = val; } > ^ >build/X86/cpu/simple_thread.hh:441:55: error: array subscript is above >array bounds [-Werror=array-bounds] > void setCCRegFlat(int idx, CCReg val) { ccRegs[idx] = val; } > > >Thanks >Nilay >_______________________________________________ >gem5-dev mailing list >[email protected] >http://m5sim.org/mailman/listinfo/gem5-dev > -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2557590 ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2548782 _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
