diff options
author | Lulu Cai <cailulu@loongson.cn> | 2024-12-09 11:21:40 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-12-09 12:01:02 +0800 |
commit | 3d75969bd0e2608dc2c23aeee3f2f597b44fa7cc (patch) | |
tree | 0ae200b6c74a5110c6e107a41c93999cf57deacb /include/opcode/loongarch.h | |
parent | 01d8e0d24ad301f69b6f5ea39d073a728477507d (diff) | |
download | binutils-3d75969bd0e2608dc2c23aeee3f2f597b44fa7cc.zip binutils-3d75969bd0e2608dc2c23aeee3f2f597b44fa7cc.tar.gz binutils-3d75969bd0e2608dc2c23aeee3f2f597b44fa7cc.tar.bz2 |
LoongArch: Assign DWARF register numbers to register aliases
.cfi directives only support the use of register numbers and not
register names or aliases.
This commit adds support for 4 formats, for example:
.cfi_offset r1, 8
.cfi_offset ra, 8
.cfi_offset $r1,8
.cfi_offset $ra,8
The above .cfi directives are equivalent and all represent dwarf
register number 1.
Display register aliases as specified in the psABI during disassembly.
Diffstat (limited to 'include/opcode/loongarch.h')
-rw-r--r-- | include/opcode/loongarch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/opcode/loongarch.h b/include/opcode/loongarch.h index 5425eaf..493fe9b 100644 --- a/include/opcode/loongarch.h +++ b/include/opcode/loongarch.h @@ -267,6 +267,10 @@ dec2 : [1-9][0-9]? extern const char *const loongarch_cr_normal_name[4]; extern const char *const loongarch_v_normal_name[32]; extern const char *const loongarch_x_normal_name[32]; + extern const char *const loongarch_r_cfi_name[32]; + extern const char *const loongarch_r_cfi_name_alias[32]; + extern const char *const loongarch_f_cfi_name[32]; + extern const char *const loongarch_f_cfi_name_alias[32]; extern struct loongarch_ase loongarch_ASEs[]; |