]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
target-mips: fix 64-bit FPU config for user-mode emulation
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Fri, 29 Nov 2013 16:27:42 +0000 (17:27 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 21 Feb 2014 03:59:18 +0000 (21:59 -0600)
commitb9cabc36a20a43a5b96686a1df47984ff983c395
treede2a790f36b03f4e747fa4da8125b2daee004908
parent03bc4f66280023cba17f8cdbd3a5b6589db343be
target-mips: fix 64-bit FPU config for user-mode emulation

FR bit should be initialized to 1 for MIPS64, under condition that this
bit is writable and that CPU has an FPU unit. It should be initialized to
zero for MIPS32.
This fixes different MIPS32 issues with FPU instructions whose behaviour
defaulted to 64-bit FPU mode.

Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 4d66261f71f2efa31e1052e4041c5ee505572fe5)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-mips/translate.c