target/ppc: Put LPCR[GTSE] in hflags
commitf03de3b44b1053c3c82f41a22ae452d1ecfdd8c5
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 23 Mar 2021 18:43:36 +0000 (23 12:43 -0600)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 4 May 2021 01:41:24 +0000 (4 11:41 +1000)
treeca441df0a8df28109c38b5d90e38fcefc3917348
parentf43520e5b233828bd4d98b4a1300ddb475e7486a
target/ppc: Put LPCR[GTSE] in hflags

Because this bit was not in hflags, the privilege check
for tlb instructions was essentially random.
Recompute hflags when storing to LPCR.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210323184340.619757-7-richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/cpu.h
target/ppc/helper_regs.c
target/ppc/mmu-hash64.c
target/ppc/translate.c