target/ppc: Fix test on mmu_model in hreg_compute_hflags_value()
commit63f38cc3d228a0886b544e9a069b922b4416d29d
authorCédric Le Goater <clg@kaod.org>
Fri, 28 Jan 2022 12:15:03 +0000 (28 13:15 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 28 Jan 2022 12:15:03 +0000 (28 13:15 +0100)
tree719b546cd7fb871a83ec6e10acb163175735abd2
parent1977434bbfbdd97d28c2fea071ea00bf4ecd0079
target/ppc: Fix test on mmu_model in hreg_compute_hflags_value()

POWERPC_MMU_BOOKE is not a mask and should not be tested with a
bitwise AND operator.

It went unnoticed because it only impacts the 601 CPU implementation
for which we don't have a known firmware image.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20220124081609.3672341-1-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
target/ppc/helper_regs.c