diff options
author | Matheus Ferst <matheus.ferst@eldorado.org.br> | 2022-06-27 11:11:03 -0300 |
---|---|---|
committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-07-18 13:59:43 -0300 |
commit | c35553b5e727dccfabc074e3658b082d63675dcc (patch) | |
tree | 89d6a5e9de3047a5ffde07b8dbb88abbe93dc0c4 /qobject/qobject-internal.h | |
parent | e89851798597d93554676cfdcbb2f1e0f38cdb68 (diff) | |
download | qemu-c35553b5e727dccfabc074e3658b082d63675dcc.zip qemu-c35553b5e727dccfabc074e3658b082d63675dcc.tar.gz qemu-c35553b5e727dccfabc074e3658b082d63675dcc.tar.bz2 |
target/ppc: fix PMU Group A register read/write exceptions
A call to "gen_(hv)priv_exception" should use POWERPC_EXCP_PRIV_* as the
'error' argument instead of POWERPC_EXCP_INVAL_*, and POWERPC_EXCP_FU is
an exception type, not an exception error code. To correctly set
FSCR[IC], we should raise Facility Unavailable with this exception type
and IC value as the error code.
Fixes: 565cb1096733 ("target/ppc: add user read/write functions for MMCR0")
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20220627141104.669152-6-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