Skip to content
Commit 58eb5308 authored by Michael Walle's avatar Michael Walle Committed by David Gibson
Browse files

linux-user: ppc64: fix ARCH_206 bit in AT_HWCAP



Only the POWER[789] CPUs should have the ARCH_206 bit set. This is what the
linux kernel does. I guess this was also the intention of commit 0e019746.
We have to make sure all *206 bits are set.

Before this patch, the flags check in the GET_FEATURES2 macro returned true
if _any_ bit was set. This worked well as long as there was only one bit
set in the 'flag' parameter. But as explained before, we have to make sure
all bits in the 'flag' parameter are set.

Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 0d594f55
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment