For NEC 4300 project, fix last remaining host/target endianness problem

* gencode.c (build_instruction): Use BigEndianCPU instead of
	ByteSwapMem.
This commit is contained in:
Jim Wilson 1997-01-08 20:40:40 +00:00
parent 7899862954
commit b99125bc1c
1 changed files with 1 additions and 1 deletions

View File

@ -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) {