Re: [PATCH] x86-64: fix ZMM register state tracking

Jan Beulich
2018-09-11T11:34:46Z

>>> On 11.09.18 at 12:34, <palves@redhat.com> wrote:
> On 09/05/2018 02:22 PM, Jan Beulich wrote:
>> The three AVX512 state components are entirely independent - one being
>> in its "init state" has no implication whatsoever on either of the other
>> two. Fully separate X86_XSTATE_ZMM_H and X86_XSTATE_ZMM handling, to
>> prevent upper halves of the upper 16 ZMM registers to display as if they
>> were zero (when they aren't) after e.g. VZEROALL/VZEROUPPER.
>>
>> gdb/
>> 2018-09-05 Jan Beulich <jbeulich@suse.com>
>>
>> * i387-tdep.c (i387_supply_xsave): Split handling of
>> X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
>> (i387_collect_xsave): Likewise.
>
> Does gdb/gdbserver/i387-fp.c need similar treatment?

Not afaics - there's no place where both flags would be tested at
the same time (other than was the case here before this patch).

Jan