[PATCH] opcodes: i386: fix dw2_regnum data type in reg_entry
Indu Bhagat
indu.bhagat@oracle.com
Tue Jan 9 01:12:28 GMT 2024
The DWARF register numbers for the APX EGRPs 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