[PATCH, V5 09/16] opcodes: i386: fix dw2_regnum data type in reg_entry

Indu Bhagat indu.bhagat@oracle.com
Thu Jan 11 07:48:13 GMT 2024


[New in V5]
  - This patch was posted earlier
https://sourceware.org/pipermail/binutils/2024-January/131692.html
    and is under discussion in a separate thread.
  - This patch does not affect the SCFI series ATM as the current
    implementation disallows APX instructions.
[End of New in V5]

The DWARF register numbers for the APX EGPRs start with 130.  The data
type holding the same currently is signed char.

ChangeLog:
	* opcodes/i386-opc.h (reg_entry): Bump to signed short.
---
 opcodes/i386-opc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h
index 61a11214914..38661ffe70c 100644
--- a/opcodes/i386-opc.h
+++ b/opcodes/i386-opc.h
@@ -1047,7 +1047,7 @@ typedef struct
 #define RegIZ	(RegIP - 1)
 /* FLAT is a fake segment register (Intel mode).  */
 #define RegFlat     ((unsigned char) ~0)
-  signed char dw2_regnum[2];
+  signed short dw2_regnum[2];
 #define Dw2Inval (-1)
 }
 reg_entry;
-- 
2.41.0



More information about the Binutils mailing list