Get OPL working

Having OPL working is a requirement for releasing the newlib port.

Currently OPL works with the following limitations/bugs:

  1. HIRES resolutions will crash OPL. However when using PCSX2 OPL does not crash when using HIRES leading me to believe it is perhaps a cache(flush) problem. Note that HIRES in PCSX2 is not really possible. When working properly it will only display the first rendering 'pass' on the top part of the screen. Also when using the HIRES samples from gsKit, everything works on a real PS2, leading me to believe it may be a memory overrun from some other part of OPL.

  2. Loading JPG files will crash OPL on a real PS2. In PCSX2 it shows TLB errors. This problem can be traced back to problems in ps2sdk-ports/libjpeg. There's some ps2 additional functions there causing the crash. But why do we modify these standard libraries anyway? -- FIXED in ps2sdk-ports/libjpeg by @fjtrujy

If someone can help debugging and fixing these issues that would be greatly appreciated.

Edited by Maximus32