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

Message ID 20240111074820.2677826-10-indu.bhagat@oracle.com
State New
Headers
Series Experimental support for synthesizing CFI for hand-written asm |

Commit Message

Indu Bhagat Jan. 11, 2024, 7:48 a.m. UTC
  [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(-)
  

Patch

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;