linux-user/sparc: Handle priviledged opcode trap
commit97ff1478d2783b8c0e71540085aec66a70f2d52b
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 16 Feb 2023 05:45:11 +0000 (15 19:45 -1000)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 10 Mar 2023 19:45:47 +0000 (10 20:45 +0100)
tree885efe8fcdd16bc2eeaacabee17fc1e90243fdde
parent6abc58eb9772aad23d12c4c43dda7713576b58ac
linux-user/sparc: Handle priviledged opcode trap

For the most part priviledged opcodes are ifdefed out of the
user-only sparc translator, which will then incorrectly produce
illegal opcode traps.  But there are some code paths that
properly raise TT_PRIV_INSN, so we must handle it.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230216054516.1267305-11-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/sparc/cpu_loop.c