Commit bd4e097a authored by Alex Zuepke's avatar Alex Zuepke Committed by Peter Maydell
Browse files

sparc: allow CASA with ASI 0xa from user space



LEON3 allows the CASA instruction to be used from user space
if the ASI is set to 0xa (user data).

Signed-off-by: default avatarAlex Zuepke <azu@sysgo.de>
Reviewed-by: default avatarRichard Henderson <rth@twiddle.net>
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent a3154cca
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5097,7 +5097,8 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn)
                    if (IS_IMM) {
                        goto illegal_insn;
                    }
                    if (!supervisor(dc)) {
                    /* LEON3 allows CASA from user space with ASI 0xa */
                    if ((GET_FIELD(insn, 19, 26) != 0xa) && !supervisor(dc)) {
                        goto priv_insn;
                    }
#endif