qemu-patch-raspberry4/target-mips
Nathan Froyd 91a7593526 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>
2009-12-13 21:01:33 +01:00
..
cpu.h target-mips: add new HFLAGs for JALX and 16/32-bit delay slots 2009-12-13 20:20:19 +01:00
exec.h qemu: per-arch cpu_has_work (Marcelo Tosatti) 2009-04-24 18:03:20 +00:00
helper.c target-mips: change interrupt bits to be mips16-aware 2009-12-13 20:20:19 +01:00
helper.h target-mips: use physical address in lladdr 2009-11-30 16:18:28 +01:00
machine.c target-mips: rename CP0_LLAddr into lladdr 2009-11-22 14:12:13 +01:00
mips-defs.h Hardware convenience library 2009-05-19 16:17:58 +01:00
op_helper.c target-mips: change interrupt bits to be mips16-aware 2009-12-13 20:20:19 +01:00
TODO target-mips: add copyright notice for mips16 work 2009-12-13 20:20:20 +01:00
translate.c target-mips: fix user-mode emulation startup 2009-12-13 21:01:33 +01:00
translate_init.c target-mips: fix user-mode emulation startup 2009-12-13 21:01:33 +01:00