[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 18/22] target/i386: split cpu_set_mxcsr() and ma
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 18/22] target/i386: split cpu_set_mxcsr() and make cpu_set_fpuc() inline |
Date: |
Tue, 4 Jul 2017 11:41:56 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 |
On 03/07/2017 22:14, Richard Henderson wrote:
> On 07/03/2017 09:34 AM, Paolo Bonzini wrote:
>> +static inline void cpu_set_mxcsr(CPUX86State *env, uint32_t mxcsr)
>> +{
>> + env->mxcsr = mxcsr;
>> + if (tcg_enabled()) {
>> + tcg_update_mxcsr(env);
>
> I'd prefer update_mxcsr_status for this new name.
>
>> + }
>> +}
>> +
>> +static inline void cpu_set_fpuc(CPUX86State *env, uint16_t fpuc)
>> +{
>> + env->fpuc = fpuc;
>> + if (tcg_enabled()) {
>> + update_fp_status(env);
>> + }
>> +}
>
> to match this, and to avoid the implication that it's a function in tcg/.
Good. Also, the existing place in machine.c that calls update_fp_status
should call update_mxcsr_status as well.
Paolo
- [Qemu-devel] [PATCH 13/22] exec: elide calls to tb_lock and tb_unlock, (continued)
- [Qemu-devel] [PATCH 13/22] exec: elide calls to tb_lock and tb_unlock, Paolo Bonzini, 2017/07/03
- [Qemu-devel] [PATCH 15/22] tcg: add the CONFIG_TCG into Makefiles, Paolo Bonzini, 2017/07/03
- [Qemu-devel] [PATCH 16/22] target/i386: move cpu_sync_bndcs_hflags() function, Paolo Bonzini, 2017/07/03
- [Qemu-devel] [PATCH 17/22] target/i386: make cpu_get_fp80()/cpu_set_fp80() static, Paolo Bonzini, 2017/07/03
- [Qemu-devel] [PATCH 18/22] target/i386: split cpu_set_mxcsr() and make cpu_set_fpuc() inline, Paolo Bonzini, 2017/07/03
- [Qemu-devel] [PATCH 22/22] configure: warn on untested --disable-tcg, Paolo Bonzini, 2017/07/03
- [Qemu-devel] [PATCH 21/22] target/i386: add the CONFIG_TCG into Makefiles, Paolo Bonzini, 2017/07/03
- [Qemu-devel] [PATCH 19/22] target/i386: move TLB refill function out of helper.c, Paolo Bonzini, 2017/07/03
- [Qemu-devel] [PATCH 20/22] target/i386: add the tcg_enabled() in target/i386/, Paolo Bonzini, 2017/07/03