Eric,
do you have a hint what could cause romcc to produce incorrect code without -fno-simplify-phi ?
Stefan
On 4/26/10 4:23 PM, Myles Watson wrote:
On Mon, Apr 26, 2010 at 7:43 AM, Stefan Reinauer stepan@coresystems.de wrote:
On 4/26/10 3:34 PM, Myles Watson wrote:
The problem with Truxton booting in trunk seems to have appeared in the migration to the new Makefile system.
If I drop a CONFIG_SSE=y into the .config file using a trunk build I can boot!
However, I don't really see how this flag gets set. Doing a 'grep -RH CONFIG_SSE' points to the two makefile includes that add the enable_sse code, but no references to setting the flag.
I added it in 5505. I think we should put an #error in the file that uses these instructions if CONFIG_SSE isn't set.
There is no specific instruction in our code causing this, but a hard code of ROMCCFLAGS in mainboard/intel/truxton/Makefile.inc:
I forgot that romcc was using the SSE registers.
ROMCCFLAGS := -mcpu=p4 -fno-simplify-phi -O2
Without the line it fails to build.
It builds with this line: ROMCCFLAGS += -fno-simplify-phi
With this line it fails to allocate enough registers: ROMCCFLAGS := -fno-simplify-phi -O2
Thanks, Myles