From: Thiemo Seufer Date: Fri, 5 May 2006 15:41:23 +0000 (+0000) Subject: [ gas/ChangeLog ] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d43b4baf078e9ebb63508ccb8a9d9f0f2416655a;p=binutils-gdb.git [ gas/ChangeLog ] * config/tc-mips.c (macro_build): Add case 'k' to handle cache instruction. (macro): Add new case M_CACHE_AB. [ opcodes/ChangeLog ] * mips-opc.c: Add macro for cache instruction. [ include/opcode/ChangeLog ] * mips.h (enum): Add macro M_CACHE_AB. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 409173810ea..6bac5b54d35 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2006-05-05 Thiemo Seufer + David Ung + + * config/tc-mips.c (macro_build): Add case 'k' to handle cache + instruction. + (macro): Add new case M_CACHE_AB. + 2006-05-04 Kazu Hirata * config/tc-arm.c (opcode_tag): Add OT_cinfix3_deprecated. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 3315fb1e6d8..3418787a72d 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -3196,6 +3196,10 @@ macro_build (expressionS *ep, const char *name, const char *fmt, ...) insn.insn_opcode |= va_arg (args, unsigned long); continue; + case 'k': + insn.insn_opcode |= va_arg (args, unsigned long) << OP_SH_CACHE; + continue; + default: internalError (); } @@ -5820,6 +5824,9 @@ macro (struct mips_cl_insn *ip) case M_SCD_AB: s = "scd"; goto st; + case M_CACHE_AB: + s = "cache"; + goto st; case M_SDC1_AB: if (mips_opts.arch == CPU_R4650) { @@ -5857,6 +5864,8 @@ macro (struct mips_cl_insn *ip) || mask == M_L_DAB || mask == M_S_DAB) fmt = "T,o(b)"; + else if (mask == M_CACHE_AB) + fmt = "k,o(b)"; else if (coproc) fmt = "E,o(b)"; else diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog index b3ab82c5689..4682f2dc8fa 100644 --- a/include/opcode/ChangeLog +++ b/include/opcode/ChangeLog @@ -1,3 +1,8 @@ +2006-05-05 Thiemo Seufer + David Ung + + * mips.h (enum): Add macro M_CACHE_AB. + 2006-05-04 Thiemo Seufer Nigel Stephens David Ung diff --git a/include/opcode/mips.h b/include/opcode/mips.h index 61601f8d20b..aa8040aec5a 100644 --- a/include/opcode/mips.h +++ b/include/opcode/mips.h @@ -646,6 +646,7 @@ enum M_BNE, M_BNE_I, M_BNEL_I, + M_CACHE_AB, M_DABS, M_DADD_I, M_DADDU_I, diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index a9587650e71..d9ab201369f 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2006-05-05 Thiemo Seufer + David Ung + + * mips-opc.c: Add macro for cache instruction. + 2006-05-04 Thiemo Seufer Nigel Stephens David Ung diff --git a/opcodes/mips-opc.c b/opcodes/mips-opc.c index 1839d874411..0270a8e212b 100644 --- a/opcodes/mips-opc.c +++ b/opcodes/mips-opc.c @@ -465,6 +465,7 @@ const struct mips_opcode mips_builtin_opcodes[] = {"flushid", "", 0xbc030000, 0xffffffff, 0, 0, L1 }, {"wb", "o(b)", 0xbc040000, 0xfc1f0000, SM|RD_b, 0, L1 }, {"cache", "k,o(b)", 0xbc000000, 0xfc000000, RD_b, 0, I3|I32|T3}, +{"cache", "k,A(b)", 0, (int) M_CACHE_AB, INSN_MACRO, 0, I3|I32|T3}, {"ceil.l.d", "D,S", 0x4620000a, 0xffff003f, WR_D|RD_S|FP_D, 0, I3|I33 }, {"ceil.l.s", "D,S", 0x4600000a, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I3|I33 }, {"ceil.w.d", "D,S", 0x4620000e, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I2 },