Matheus Ferst e898517985 target/ppc: fix exception error code in helper_{load, store}_dcr
POWERPC_EXCP_INVAL should only be or-ed with other constants prefixed
with POWERPC_EXCP_INVAL_. Also, take the opportunity to move both
helpers under #if !defined(CONFIG_USER_ONLY) as the instructions that
use them are privileged.

No functional change is intended, the lower 4 bits of the error code are
ignored by all powerpc_excp_* methods on POWERPC_EXCP_INVAL exceptions.

Reported-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20220627141104.669152-5-matheus.ferst@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
2022-07-18 13:59:43 -03:00
..
2022-07-06 10:22:38 -03:00
2022-07-18 13:59:43 -03:00
2022-07-18 13:59:43 -03:00
2022-07-06 10:22:38 -03:00
2022-05-05 15:36:17 -03:00
2022-05-05 15:36:17 -03:00
2022-05-26 17:11:32 -03:00
2022-07-06 10:22:38 -03:00
2022-05-05 15:36:17 -03:00
2022-05-05 15:36:17 -03:00
2022-05-05 15:36:17 -03:00
2022-05-05 15:36:17 -03:00
2022-05-05 15:36:17 -03:00