diff options
author | Yang Zhong <yang.zhong@intel.com> | 2017-07-03 18:12:19 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-07-05 09:12:44 +0200 |
commit | 1d8ad165b688759bbf00e40431ee9fde8817d190 (patch) | |
tree | 4f43b9fb62be94a50e57a94717d3ba9dd27a46af /target/i386/machine.c | |
parent | db573d2cf7ae6b5a4fc324be6f55e078fc218464 (diff) |
target/i386: split cpu_set_mxcsr() and make cpu_set_fpuc() inline
Split the cpu_set_mxcsr() and make cpu_set_fpuc() inline with specific
tcg code.
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/machine.c')
-rw-r--r-- | target/i386/machine.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target/i386/machine.c b/target/i386/machine.c index 53587ae88b..e0417fecaf 100644 --- a/target/i386/machine.c +++ b/target/i386/machine.c @@ -280,7 +280,10 @@ static int cpu_post_load(void *opaque, int version_id) for(i = 0; i < 8; i++) { env->fptags[i] = (env->fptag_vmstate >> i) & 1; } - update_fp_status(env); + if (tcg_enabled()) { + update_fp_status(env); + update_mxcsr_status(env); + } cpu_breakpoint_remove_all(cs, BP_CPU); cpu_watchpoint_remove_all(cs, BP_CPU); |