]> git.ipfire.org Git - thirdparty/qemu.git/commit
target-mips: add missing MSACSR and restore fp_status and hflags
authorLeon Alrae <leon.alrae@imgtec.com>
Fri, 20 Feb 2015 13:07:45 +0000 (13:07 +0000)
committerLeon Alrae <leon.alrae@imgtec.com>
Wed, 11 Mar 2015 14:13:57 +0000 (14:13 +0000)
commit644511117e7ca9f26d633a59c202a297113a796c
tree1a213779e8c4320e00ef6f24c0a49705aef1ac96
parent04cd79625fa4103c5839ba36ad476dd22f7f7557
target-mips: add missing MSACSR and restore fp_status and hflags

Save MSACSR state. Also remove fp_status, msa_fp_status, hflags and restore
them in post_load() from the architectural registers.
Float exception flags are not present in vmstate. Information they carry
is used only by softfloat caller who translates them into MIPS FCSR.Cause,
FCSR.Flags and then they are cleared. Therefore there is no need for saving
them in vmstate.

Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
target-mips/cpu.h
target-mips/machine.c
target-mips/msa_helper.c
target-mips/translate_init.c