unicorn/qemu/target
Fredrik Noring e9a4475a35
target/mips: Make R5900 DMULT[U], DDIV[U], LL[D] and SC[D] user only
The Linux kernel traps certain reserved instruction exceptions to
emulate the corresponding instructions. QEMU plays the role of the
kernel in user mode, so those traps are emulated by accepting the
instructions.

This change adds the function check_insn_opc_user_only to signal a
reserved instruction exception for flagged CPUs in QEMU system mode.

The MIPS III instructions DMULT[U], DDIV[U], LL[D] and SC[D] are not
implemented in R5900 hardware. They are trapped and emulated by the
Linux kernel and, accordingly, therefore QEMU user only instructions.

Backports commit 96631327be14c4f54cc31f873c278d9ffedd1e00 from qemu
2018-11-10 12:10:01 -05:00
..
arm target/arm: Only flush tlb if ASID changes 2018-11-10 11:26:24 -05:00
i386 target/i386: Convert to HAVE_CMPXCHG128 2018-10-23 15:21:03 -04:00
m68k Removes accessible assert 2018-10-06 05:02:20 -04:00
mips target/mips: Make R5900 DMULT[U], DDIV[U], LL[D] and SC[D] user only 2018-11-10 12:10:01 -05:00
sparc Sparc increase ttl number 2018-10-06 04:55:52 -04:00