diff options
author | Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> | 2014-07-20 20:26:09 +0300 |
---|---|---|
committer | Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> | 2014-07-20 20:26:09 +0300 |
commit | 018dc9bedf40d528f1d05d56555e20ed54a77dc3 (patch) | |
tree | 3b00411c0efdc5c37291f60739bf6f28ea3c5980 /opcodes/or1k-opinst.c | |
parent | 164224e96ca270d6cbb61d3e326fc1b0453b30a6 (diff) | |
download | gdb-018dc9bedf40d528f1d05d56555e20ed54a77dc3.zip gdb-018dc9bedf40d528f1d05d56555e20ed54a77dc3.tar.gz gdb-018dc9bedf40d528f1d05d56555e20ed54a77dc3.tar.bz2 |
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.c | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/opcodes/or1k-opinst.c b/opcodes/or1k-opinst.c index 3b8c8b1..1a65efb 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. */ |