]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
x86-64: Dwarf2 register numbers for %bnd<N>
authorJan Beulich <jbeulich@suse.com>
Fri, 19 Jan 2024 09:19:15 +0000 (10:19 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 19 Jan 2024 09:19:15 +0000 (10:19 +0100)
I don't see why we shouldn't record them when they have been allocated,
even if they're (bogusly) named as reserved in the ABI right now.

opcodes/i386-reg.tbl
opcodes/i386-tbl.h

index f92315392b8d2cfcc9a68377f17f35e83bd3b71a..87d2665243d979a633bf55c7758947ce19209079 100644 (file)
@@ -353,10 +353,10 @@ tmm5, Class=RegSIMD|Tmmword, 0, 5, Dw2Inval, Dw2Inval
 tmm6, Class=RegSIMD|Tmmword, 0, 6, Dw2Inval, Dw2Inval
 tmm7, Class=RegSIMD|Tmmword, 0, 7, Dw2Inval, Dw2Inval
 // Bound registers for MPX
-bnd0, Class=RegBND, 0, 0, Dw2Inval, Dw2Inval
-bnd1, Class=RegBND, 0, 1, Dw2Inval, Dw2Inval
-bnd2, Class=RegBND, 0, 2, Dw2Inval, Dw2Inval
-bnd3, Class=RegBND, 0, 3, Dw2Inval, Dw2Inval
+bnd0, Class=RegBND, 0, 0, Dw2Inval, 126
+bnd1, Class=RegBND, 0, 1, Dw2Inval, 127
+bnd2, Class=RegBND, 0, 2, Dw2Inval, 128
+bnd3, Class=RegBND, 0, 3, Dw2Inval, 129
 // No Class=Reg will make these registers rejected for all purposes except
 // for addressing.  This saves creating one extra type for RIP/EIP.
 rip, Qword, RegRex64, RegIP, Dw2Inval, 16
index 72d5b9fbcf7c97fac66889ad3fb3118feddb6938..bdcc3c86b50ab4cc2558c8783b8fd769ab5a6664 100644 (file)
@@ -44881,19 +44881,19 @@ static const reg_entry i386_regtab[] =
   { "bnd0",
     { { 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0 } },
-    0, 0, { Dw2Inval, Dw2Inval } },
+    0, 0, { Dw2Inval, 126 } },
   { "bnd1",
     { { 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0 } },
-    0, 1, { Dw2Inval, Dw2Inval } },
+    0, 1, { Dw2Inval, 127 } },
   { "bnd2",
     { { 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0 } },
-    0, 2, { Dw2Inval, Dw2Inval } },
+    0, 2, { Dw2Inval, 128 } },
   { "bnd3",
     { { 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0 } },
-    0, 3, { Dw2Inval, Dw2Inval } },
+    0, 3, { Dw2Inval, 129 } },
   { "rip",
     { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0,
        0, 0, 0, 0, 0, 0 } },