[POWERPC] Fix warning in hpte_decode(), and generalize it