powerpc/mm: Fix hash computation function