target/ppc: add macros to check privilege level
commitfc34e81acd5163ea39eee191ec8846c299ca2662
authorMatheus Ferst <matheus.ferst@eldorado.org.br>
Fri, 1 Jul 2022 13:34:58 +0000 (1 10:34 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 18 Jul 2022 16:59:43 +0000 (18 13:59 -0300)
tree7455f7f104bdf330a3b3bc5ad6e5a30ef5b997b2
parent9f0cf041975f76720681b218f217eb23333c7c1a
target/ppc: add macros to check privilege level

Equivalent to CHK_SV and CHK_HV, but can be used in decodetree methods.

Reviewed-by: Leandro Lupori <leandro.lupori@eldorado.org.br>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Signed-off-by: Lucas Coutinho <lucas.coutinho@eldorado.org.br>
Message-Id: <20220701133507.740619-3-lucas.coutinho@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/translate.c
target/ppc/translate/fixedpoint-impl.c.inc