Hi all,
Over the past months, I have been trying to complete support for the MIPS R5900 (the Emotion Engine) within GCC. With the help of the folks there, I've been able to add support for the 2nd integer arithmetic pipeline, MMI, and provide 128-bit loads and stores to boost memory-copying operations.
However, there is one part that I haven't figured out how to implement yet: support for the FPU. Regardless of how I do it, GCC doesn't seem to want to use the newly-added FPU accumulator register (and hence the new instruction patterns).
The homebrew EE GCC v3.2.2 port has no support for the FPU instructions, despite what its README file says. I don't have access to a working installation of other EE GCC compiler (official or not), so I don't have any idea whether this can even be implemented or how it can be done.
Does anyone know whether SONY ever supported the FPU in its official EE GCC compilers? I am not only referring to the one used for developing games, but the one that came with PS2Linux. The documentation doesn't seem to mention this.
Thanks in advance!
EDIT: It probably isn't possible because there is no way to preserve the content of $ACC. As a result, other threads and interrupt handlers are able to overwrite its content, in the middle of a chain of MADDs or MSUBs. Hence it is unlikely that SONY would have supported it within GCC.
The PS2Linux EE GCC patch does not seem to have support for it either.
Over the past months, I have been trying to complete support for the MIPS R5900 (the Emotion Engine) within GCC. With the help of the folks there, I've been able to add support for the 2nd integer arithmetic pipeline, MMI, and provide 128-bit loads and stores to boost memory-copying operations.
However, there is one part that I haven't figured out how to implement yet: support for the FPU. Regardless of how I do it, GCC doesn't seem to want to use the newly-added FPU accumulator register (and hence the new instruction patterns).
The homebrew EE GCC v3.2.2 port has no support for the FPU instructions, despite what its README file says. I don't have access to a working installation of other EE GCC compiler (official or not), so I don't have any idea whether this can even be implemented or how it can be done.
Does anyone know whether SONY ever supported the FPU in its official EE GCC compilers? I am not only referring to the one used for developing games, but the one that came with PS2Linux. The documentation doesn't seem to mention this.
Thanks in advance!
EDIT: It probably isn't possible because there is no way to preserve the content of $ACC. As a result, other threads and interrupt handlers are able to overwrite its content, in the middle of a chain of MADDs or MSUBs. Hence it is unlikely that SONY would have supported it within GCC.
The PS2Linux EE GCC patch does not seem to have support for it either.