diff options
author | John Baldwin <jhb@FreeBSD.org> | 2023-05-08 10:39:52 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2023-05-08 10:39:52 -0700 |
commit | 642a97391ae81d6a774aae651889501e4e840f0e (patch) | |
tree | b2557f538066f3fe97bbf795c44f3ee96eddad58 /gdbserver | |
parent | fa0ea5047b2b6244098dc5f12b7fb1893a23548b (diff) | |
download | gdb-642a97391ae81d6a774aae651889501e4e840f0e.zip gdb-642a97391ae81d6a774aae651889501e4e840f0e.tar.gz gdb-642a97391ae81d6a774aae651889501e4e840f0e.tar.bz2 |
gdbserver: Clear upper ZMM registers in the right location.
This was previously clearing the upper 32 bytes of ZMM0-15 rather than
ZMM16-31.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/i387-fp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/i387-fp.cc b/gdbserver/i387-fp.cc index 12cb614..49795ac 100644 --- a/gdbserver/i387-fp.cc +++ b/gdbserver/i387-fp.cc @@ -322,7 +322,7 @@ i387_cache_to_xsave (struct regcache *regcache, void *buf) if ((clear_bv & X86_XSTATE_ZMM)) { for (i = 0; i < num_avx512_zmmh_high_registers; i++) - memset (((char *) &fp->zmmh_low_space[0]) + 32 + i * 64, 0, 32); + memset (((char *) &fp->zmmh_high_space[0]) + 32 + i * 64, 0, 32); for (i = 0; i < num_avx512_xmm_registers; i++) memset (((char *) &fp->zmmh_high_space[0]) + i * 64, 0, 16); for (i = 0; i < num_avx512_ymmh_registers; i++) |