diff options
author | Matheus Ferst <matheus.ferst@eldorado.org.br> | 2022-06-27 11:10:59 -0300 |
---|---|---|
committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-07-18 13:59:43 -0300 |
commit | 1315eed69d4810ae297f737b44ee8b63f6589190 (patch) | |
tree | 36b83a2ac8373e5ed05b6fc3a24f62ca68a17164 /qobject/qobject-internal.h | |
parent | 1a42c69237a57805b09b50e90878c33100ea2397 (diff) | |
download | qemu-1315eed69d4810ae297f737b44ee8b63f6589190.zip qemu-1315eed69d4810ae297f737b44ee8b63f6589190.tar.gz qemu-1315eed69d4810ae297f737b44ee8b63f6589190.tar.bz2 |
target/ppc: Fix gen_priv_exception error value in mfspr/mtspr
The code in linux-user/ppc/cpu_loop.c expects POWERPC_EXCP_PRIV
exception with error POWERPC_EXCP_PRIV_OPC or POWERPC_EXCP_PRIV_REG,
while POWERPC_EXCP_INVAL_SPR is expected in POWERPC_EXCP_INVAL
exceptions. This mismatch caused an EXCP_DUMP with the message "Unknown
privilege violation (03)", as seen in [1].
[1] https://gitlab.com/qemu-project/qemu/-/issues/588
Fixes: 9b2fadda3e01 ("ppc: Rework generation of priv and inval interrupts")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/588
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Message-Id: <20220627141104.669152-2-matheus.ferst@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'qobject/qobject-internal.h')
0 files changed, 0 insertions, 0 deletions