]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc: Check privilege level based on PSR and LPCR[HR] in tlbie[l]
authorMatheus Ferst <matheus.ferst@eldorado.org.br>
Fri, 17 Sep 2021 11:47:51 +0000 (08:47 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 30 Sep 2021 02:26:06 +0000 (12:26 +1000)
commit92fb92d3e9c67f83cbbca0e2b9ca2d88fefd6643
treec87161f441e6e5830f91a82e3f63b92bea5efea7
parent1db3632a14f44e243068bcf89bcf0739b657972b
target/ppc: Check privilege level based on PSR and LPCR[HR] in tlbie[l]

PowerISA v3.0B made tlbie[l] hypervisor privileged when PSR=0 and HR=1.
To allow the check at translation time, we'll use the HR bit of LPCR to
check the MMU mode instead of the PATE.HR.

Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Message-Id: <20210917114751.206845-3-matheus.ferst@eldorado.org.br>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/translate.c