aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorFredrik Noring <noring@nocrew.org>2018-10-21 17:40:18 +0200
committerAleksandar Markovic <amarkovic@wavecomp.com>2018-10-24 15:20:31 +0200
commit96631327be14c4f54cc31f873c278d9ffedd1e00 (patch)
tree07288c34936d4eeb58d33a41ea1ce0a8f2350b11 /linux-user
parent5601e6217d90ed322b4b9a6d68e8db607db91842 (diff)
downloadqemu-96631327be14c4f54cc31f873c278d9ffedd1e00.zip
qemu-96631327be14c4f54cc31f873c278d9ffedd1e00.tar.gz
qemu-96631327be14c4f54cc31f873c278d9ffedd1e00.tar.bz2
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. Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Fredrik Noring <noring@nocrew.org> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions