+2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/tc-ip2k. (ip2k_apply_fix): Pass endianness to
+ cgen_get_insn_value.
+ * config/tc-xstormy16.c (xstormy16_md_apply_fix): Pass
+ endianness to cgen_get_insn_value and cgen_put_insn_value.
+
2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
* config/tc-bpf.c (md_apply_fix): Simplify and avoid using
CGEN_CPU_DESC cd = gas_cgen_cpu_desc;
CGEN_INSN_INT insn_value
= cgen_get_insn_value (cd, (unsigned char *) where,
- CGEN_INSN_BITSIZE (fixP->fx_cgen.insn));
+ CGEN_INSN_BITSIZE (fixP->fx_cgen.insn),
+ gas_cgen_cpu_desc->insn_endian);
/* Preserve (DP) or (SP) specification. */
*valueP += (insn_value & 0x180);
}
{
CGEN_INSN_INT insn_value =
cgen_get_insn_value (cd, (unsigned char *) where,
- CGEN_INSN_BITSIZE (insn));
+ CGEN_INSN_BITSIZE (insn),
+ gas_cgen_cpu_desc->insn_endian);
/* ??? 0 is passed for `pc'. */
errmsg = CGEN_CPU_INSERT_OPERAND (cd) (cd, opindex, fields,
&insn_value, (bfd_vma) 0);
cgen_put_insn_value (cd, (unsigned char *) where,
- CGEN_INSN_BITSIZE (insn), insn_value);
+ CGEN_INSN_BITSIZE (insn), insn_value,
+ gas_cgen_cpu_desc->insn_endian);
}
#else
/* ??? 0 is passed for `pc'. */