powerpc: move NMI entry/exit code into wrapper