sparc: Improve handling of MemPerm nodes.