]> git.ipfire.org Git - thirdparty/qemu.git/commit
target-mips: fix user-mode emulation startup
authorNathan Froyd <froydnj@codesourcery.com>
Fri, 11 Dec 2009 17:29:20 +0000 (09:29 -0800)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 13 Dec 2009 20:05:16 +0000 (21:05 +0100)
commit869ca150e73125abdabbac96861713143bc3fb40
tree6f6a6a31c6f9ade7a220575bd397fc486b367c75
parent910628f39676ee65211727245809eec7ca4d75f5
target-mips: fix user-mode emulation startup

Running programs with the MIPS user-mode emulator fails during dynamic
loading, as floating-point instructions are not enabled in in
env->hflags.  Move the code for doing so from fpu_init to cpu_reset so
the MIPS_HFLAG_{FPU,F64} setting doesn't get clobbered by cpu_reset
setting env->hflags to MIPS_HFLAG_UM.

The same end can be achieved by swapping the ordering of fpu_init and
cpu_reset in cpu_mips_init, but it seemed better to consolidate the
CONFIG_USER_ONLY code into a single location.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 91a759352623e4a3da969fa66626cc99241e9da2)
target-mips/translate.c
target-mips/translate_init.c