powerpc: Introduce function emulate_math()