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)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 9 Dec 2013 15:41:23 +0000 (16:41 +0100)
commit4d66261f71f2efa31e1052e4041c5ee505572fe5
tree495ff45cde07c755d35cde4f28c853fb8b406455
parent21c046118e740704d0ba81f6281dc95905bc30a8
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>
target-mips/translate.c