aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorJim Wilson <wilson@tuliptree.org>1997-01-08 20:40:40 +0000
committerJim Wilson <wilson@tuliptree.org>1997-01-08 20:40:40 +0000
commitb99125bc1cefd1170cf4023d349f5f5d5c4d75c8 (patch)
treec42d986cc3651fd20ee0f9874eb09ce38eb6dfb5 /sim
parent789986295443f0aea02f227b839965937b4d8783 (diff)
downloadgdb-b99125bc1cefd1170cf4023d349f5f5d5c4d75c8.zip
gdb-b99125bc1cefd1170cf4023d349f5f5d5c4d75c8.tar.gz
gdb-b99125bc1cefd1170cf4023d349f5f5d5c4d75c8.tar.bz2
For NEC 4300 project, fix last remaining host/target endianness problem
* gencode.c (build_instruction): Use BigEndianCPU instead of ByteSwapMem.
Diffstat (limited to 'sim')
-rw-r--r--sim/mips/gencode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/mips/gencode.c b/sim/mips/gencode.c
index 4f7a327..23a5240 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) {