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:
parent
7899862954
commit
b99125bc1c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue