aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorTsukasa OI <research_trasio@irq.a4lg.com>2022-10-08 13:58:11 +0000
committerTsukasa OI <research_trasio@irq.a4lg.com>2022-10-14 05:21:38 +0000
commit3d9d92c22f6dd2a44f7d4e0d11c0671903e2387f (patch)
tree5345f72173ed84d3670fb04f7e5fc535eb6d9a0a /opcodes
parent27fb6a1a7fcd047e7d01bef8e3c12ed67bc7aed0 (diff)
downloadgdb-3d9d92c22f6dd2a44f7d4e0d11c0671903e2387f.zip
gdb-3d9d92c22f6dd2a44f7d4e0d11c0671903e2387f.tar.gz
gdb-3d9d92c22f6dd2a44f7d4e0d11c0671903e2387f.tar.bz2
RISC-V: Move certain arrays to riscv-opc.c
This is a part of small tidying (declare tables in riscv-opc.c). include/ChangeLog: * opcode/riscv.h (riscv_rm, riscv_pred_succ): Move declarations to opcodes/riscv-opc.c. New non-static definitions. opcodes/ChangeLog: * riscv-opc.c (riscv_rm, riscv_pred_succ): Move from include/opcode/riscv.h. Add description.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/riscv-opc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/opcodes/riscv-opc.c b/opcodes/riscv-opc.c
index 11bb87d..04acc84 100644
--- a/opcodes/riscv-opc.c
+++ b/opcodes/riscv-opc.c
@@ -58,6 +58,19 @@ const char * const riscv_fpr_names_abi[NFPR] =
"fs8", "fs9", "fs10", "fs11", "ft8", "ft9", "ft10", "ft11"
};
+/* Rounding modes. */
+const char * const riscv_rm[8] =
+{
+ "rne", "rtz", "rdn", "rup", "rmm", 0, 0, "dyn"
+};
+
+/* FENCE: predecessor/successor sets. */
+const char * const riscv_pred_succ[16] =
+{
+ 0, "w", "r", "rw", "o", "ow", "or", "orw",
+ "i", "iw", "ir", "irw", "io", "iow", "ior", "iorw"
+};
+
/* RVV registers. */
const char * const riscv_vecr_names_numeric[NVECR] =
{