mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
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:
@ -2022,7 +2022,7 @@ build_instruction (doisa, features, mips16, insn)
|
|||||||
printf(" int byte;\n");
|
printf(" int byte;\n");
|
||||||
printf(" paddr = ((paddr & ~mask) | ((paddr & mask) ^ reverse));\n");
|
printf(" paddr = ((paddr & ~mask) | ((paddr & mask) ^ reverse));\n");
|
||||||
printf(" byte = ((vaddr & mask) ^ bigend);\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");
|
printf(" paddr &= ~mask;\n");
|
||||||
|
|
||||||
if (isload) {
|
if (isload) {
|
||||||
|
Reference in New Issue
Block a user