aboutsummaryrefslogtreecommitdiff
path: root/sim/mips
diff options
context:
space:
mode:
authorGavin Romig-Koch <gavin@redhat.com>1997-10-25 20:53:46 +0000
committerGavin Romig-Koch <gavin@redhat.com>1997-10-25 20:53:46 +0000
commit635ae9cb7cd6337401ab81144b31f6bc33e20b10 (patch)
tree0b9d2c87173ae47228118b883bceefb0c7fa3869 /sim/mips
parentb5da31ac7ce83aa2be19530ab1035b461413e96d (diff)
downloadgdb-635ae9cb7cd6337401ab81144b31f6bc33e20b10.zip
gdb-635ae9cb7cd6337401ab81144b31f6bc33e20b10.tar.gz
gdb-635ae9cb7cd6337401ab81144b31f6bc33e20b10.tar.bz2
* sim/mips/gencode.c (build_instruction): Follow sim_write's lead in using
BigEndianMem instead of !ByteSwapMem.
Diffstat (limited to 'sim/mips')
-rw-r--r--sim/mips/ChangeLog6
-rw-r--r--sim/mips/gencode.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index b865a28..34834ea 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,3 +1,9 @@
+Sat Oct 25 16:51:40 1997 Gavin Koch <gavin@cygnus.com>
+
+ * gencode.c (build_instruction): Follow sim_write's lead in using
+ BigEndianMem instead of !ByteSwapMem.
+
+
Fri Oct 24 17:41:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
* configure.in (sim_gen): Dependent on target, select type of
diff --git a/sim/mips/gencode.c b/sim/mips/gencode.c
index 1ccaa6c..2b84cdf 100644
--- a/sim/mips/gencode.c
+++ b/sim/mips/gencode.c
@@ -2980,7 +2980,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 (%sBigEndianMem)\n",((insn->flags & LEFT) ? "!" : ""));
printf(" paddr &= ~mask;\n");
if (isload) {