]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdbserver/i387-fp.cc
New Romanian translation for gas sub-directory
[thirdparty/binutils-gdb.git] / gdbserver / i387-fp.cc
index 4229d60327e6dad1bc36b48c5f5a641316f22efd..60d565b84823d42ad4ef72abf2e9c175b5c83d5b 100644 (file)
@@ -1,5 +1,5 @@
 /* i387-specific utility functions, for the remote server for GDB.
-   Copyright (C) 2000-2023 Free Software Foundation, Inc.
+   Copyright (C) 2000-2024 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -83,7 +83,7 @@ struct i387_fxsave
   unsigned char xmm_space[256];
 };
 
-gdb_static_assert (sizeof(i387_fxsave) == 416);
+static_assert (sizeof(i387_fxsave) == 416);
 
 struct i387_xsave : public i387_fxsave
 {
@@ -147,7 +147,7 @@ public:
   { return xsave () + xsave_layout.pkru_offset; }
 };
 
-gdb_static_assert (sizeof(i387_xsave) == 576);
+static_assert (sizeof(i387_xsave) == 576);
 
 void
 i387_cache_to_fsave (struct regcache *regcache, void *buf)
@@ -469,7 +469,7 @@ i387_cache_to_xsave (struct regcache *regcache, void *buf)
          if (memcmp (raw, p + 32, 32) != 0)
            {
              xstate_bv |= X86_XSTATE_ZMM;
-             memcpy (p, raw, 32);
+             memcpy (p + 32, raw, 32);
            }
 
          /* YMMH sub-register.  */
@@ -477,7 +477,7 @@ i387_cache_to_xsave (struct regcache *regcache, void *buf)
          if (memcmp (raw, p + 16, 16) != 0)
            {
              xstate_bv |= X86_XSTATE_ZMM;
-             memcpy (p, raw, 16);
+             memcpy (p + 16, raw, 16);
            }
 
          /* XMM sub-register.  */