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

Reply via email to