summaryrefslogtreecommitdiff
path: root/opcodes/or1k-opinst.c
diff options
context:
space:
mode:
authorStefan Kristiansson <stefan.kristiansson@saunalahti.fi>2014-07-20 20:26:09 +0300
committerStefan Kristiansson <stefan.kristiansson@saunalahti.fi>2014-07-20 20:26:09 +0300
commit018dc9bedf40d528f1d05d56555e20ed54a77dc3 (patch)
tree3b00411c0efdc5c37291f60739bf6f28ea3c5980 /opcodes/or1k-opinst.c
parent164224e96ca270d6cbb61d3e326fc1b0453b30a6 (diff)
downloadbinutils-gdb-018dc9bedf40d528f1d05d56555e20ed54a77dc3.tar.gz
or1k: add missing l.msync, l.psync and l.psync instructions.
Even though the opcodes were defined for these instructions, the actual instruction definitions were lacking. cpu/ * or1korbis.cpu (l-msync, l-psync, l-csync): New instructions. opcodes/ * or1k-desc.c, * or1k-desc.h, * or1k-opc.c, * or1k-opc.h, * or1k-opinst.c: Regenerate.
Diffstat (limited to 'opcodes/or1k-opinst.c')
-rw-r--r--opcodes/or1k-opinst.c29
1 files changed, 16 insertions, 13 deletions
diff --git a/opcodes/or1k-opinst.c b/opcodes/or1k-opinst.c
index 3b8c8b1d819..1a65efb6f46 100644
--- a/opcodes/or1k-opinst.c
+++ b/opcodes/or1k-opinst.c
@@ -87,7 +87,7 @@ static const CGEN_OPINST sfmt_l_trap_ops[] ATTRIBUTE_UNUSED = {
{ END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
};
-static const CGEN_OPINST sfmt_l_rfe_ops[] ATTRIBUTE_UNUSED = {
+static const CGEN_OPINST sfmt_l_msync_ops[] ATTRIBUTE_UNUSED = {
{ END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }
};
@@ -459,9 +459,12 @@ static const CGEN_OPINST *or1k_cgen_opinst_table[MAX_INSNS] = {
& sfmt_l_bnf_ops[0],
& sfmt_l_trap_ops[0],
& sfmt_l_trap_ops[0],
- & sfmt_l_rfe_ops[0],
+ & sfmt_l_msync_ops[0],
+ & sfmt_l_msync_ops[0],
+ & sfmt_l_msync_ops[0],
+ & sfmt_l_msync_ops[0],
& sfmt_l_nop_imm_ops[0],
- & sfmt_l_rfe_ops[0],
+ & sfmt_l_msync_ops[0],
& sfmt_l_movhi_ops[0],
& sfmt_l_macrc_ops[0],
& sfmt_l_mfspr_ops[0],
@@ -533,14 +536,14 @@ static const CGEN_OPINST *or1k_cgen_opinst_table[MAX_INSNS] = {
& sfmt_l_mac_ops[0],
& sfmt_l_mac_ops[0],
& sfmt_l_maci_ops[0],
- & sfmt_l_rfe_ops[0],
- & sfmt_l_rfe_ops[0],
- & sfmt_l_rfe_ops[0],
- & sfmt_l_rfe_ops[0],
- & sfmt_l_rfe_ops[0],
- & sfmt_l_rfe_ops[0],
- & sfmt_l_rfe_ops[0],
- & sfmt_l_rfe_ops[0],
+ & sfmt_l_msync_ops[0],
+ & sfmt_l_msync_ops[0],
+ & sfmt_l_msync_ops[0],
+ & sfmt_l_msync_ops[0],
+ & sfmt_l_msync_ops[0],
+ & sfmt_l_msync_ops[0],
+ & sfmt_l_msync_ops[0],
+ & sfmt_l_msync_ops[0],
& sfmt_lf_add_s_ops[0],
& sfmt_lf_add_d_ops[0],
& sfmt_lf_add_s_ops[0],
@@ -569,8 +572,8 @@ static const CGEN_OPINST *or1k_cgen_opinst_table[MAX_INSNS] = {
& sfmt_lf_eq_d_ops[0],
& sfmt_lf_madd_s_ops[0],
& sfmt_lf_madd_d_ops[0],
- & sfmt_l_rfe_ops[0],
- & sfmt_l_rfe_ops[0],
+ & sfmt_l_msync_ops[0],
+ & sfmt_l_msync_ops[0],
};
/* Function to call before using the operand instance table. */