From: Jim Wilson Date: Wed, 8 Jan 1997 20:40:40 +0000 (+0000) Subject: For NEC 4300 project, fix last remaining host/target endianness problem X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b99125bc1cefd1170cf4023d349f5f5d5c4d75c8;p=binutils-gdb.git For NEC 4300 project, fix last remaining host/target endianness problem * gencode.c (build_instruction): Use BigEndianCPU instead of ByteSwapMem. --- diff --git a/sim/mips/gencode.c b/sim/mips/gencode.c index 4f7a32703a7..23a52404359 100644 --- a/sim/mips/gencode.c +++ b/sim/mips/gencode.c @@ -2022,7 +2022,7 @@ build_instruction (doisa, features, mips16, insn) printf(" int byte;\n"); printf(" paddr = ((paddr & ~mask) | ((paddr & mask) ^ reverse));\n"); printf(" byte = ((vaddr & mask) ^ bigend);\n"); - printf(" if (%s!ByteSwapMem)\n",((insn->flags & LEFT) ? "!" : "")); + printf(" if (%sBigEndianCPU)\n",((insn->flags & LEFT) ? "!" : "")); printf(" paddr &= ~mask;\n"); if (isload) {