mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 04:43:17 +08:00
* config/tc-mep.c (md_begin): Don't reset the coprocessor options
when enabling other options without a specific configuration.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2009-07-07 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
|
* config/tc-mep.c (md_begin): Don't reset the coprocessor options
|
||||||
|
when enabling other options without a specific configuration.
|
||||||
|
|
||||||
2009-07-07 Chung-Lin Tang <cltang@pllab.cs.nthu.edu.tw>
|
2009-07-07 Chung-Lin Tang <cltang@pllab.cs.nthu.edu.tw>
|
||||||
|
|
||||||
* config/tc-arm.c (insns): Fix encoding for torvsc.
|
* config/tc-arm.c (insns): Fix encoding for torvsc.
|
||||||
|
@ -176,6 +176,23 @@ struct option md_longopts[] = {
|
|||||||
{ NULL, 0, NULL, 0 } };
|
{ NULL, 0, NULL, 0 } };
|
||||||
size_t md_longopts_size = sizeof (md_longopts);
|
size_t md_longopts_size = sizeof (md_longopts);
|
||||||
|
|
||||||
|
/* Options which default to on/off together. See the comment where
|
||||||
|
this is used for details. Note that CP and CP64 are not in this
|
||||||
|
list because disabling those overrides the -mivc2 option. */
|
||||||
|
#define OPTION_MASK \
|
||||||
|
( (1 << CGEN_INSN_OPTIONAL_BIT_INSN) \
|
||||||
|
| (1 << CGEN_INSN_OPTIONAL_MUL_INSN) \
|
||||||
|
| (1 << CGEN_INSN_OPTIONAL_DIV_INSN) \
|
||||||
|
| (1 << CGEN_INSN_OPTIONAL_DEBUG_INSN) \
|
||||||
|
| (1 << CGEN_INSN_OPTIONAL_LDZ_INSN) \
|
||||||
|
| (1 << CGEN_INSN_OPTIONAL_ABS_INSN) \
|
||||||
|
| (1 << CGEN_INSN_OPTIONAL_AVE_INSN) \
|
||||||
|
| (1 << CGEN_INSN_OPTIONAL_MINMAX_INSN) \
|
||||||
|
| (1 << CGEN_INSN_OPTIONAL_CLIP_INSN) \
|
||||||
|
| (1 << CGEN_INSN_OPTIONAL_SAT_INSN) \
|
||||||
|
| (1 << CGEN_INSN_OPTIONAL_UCI_INSN) \
|
||||||
|
| (1 << CGEN_INSN_OPTIONAL_DSP_INSN) )
|
||||||
|
|
||||||
const char * md_shortopts = "";
|
const char * md_shortopts = "";
|
||||||
static int optbits = 0;
|
static int optbits = 0;
|
||||||
static int optbitset = 0;
|
static int optbitset = 0;
|
||||||
@ -462,7 +479,10 @@ md_begin ()
|
|||||||
specified. If the user specifies options and a config, the
|
specified. If the user specifies options and a config, the
|
||||||
options modify the config. */
|
options modify the config. */
|
||||||
if (optbits && mep_config_index == 0)
|
if (optbits && mep_config_index == 0)
|
||||||
MEP_OMASK = optbits;
|
{
|
||||||
|
MEP_OMASK &= ~OPTION_MASK;
|
||||||
|
MEP_OMASK |= optbits;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
MEP_OMASK = (MEP_OMASK & ~optbitset) | optbits;
|
MEP_OMASK = (MEP_OMASK & ~optbitset) | optbits;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user