Here is the gas portion of the sh4a port, on behalf of Alex Oliva.