mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 13:19:22 +00:00
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). Backports commit bd4e097a8e30bb63ed7f46553b13f60809c30ac3 from qemu
This commit is contained in:
parent
03dffc1e9c
commit
3664e1ab8a
1 changed files with 2 additions and 1 deletions
|
@ -5248,7 +5248,8 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn, bool hook_ins
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue