aboutsummaryrefslogtreecommitdiff
path: root/sim/mips
diff options
context:
space:
mode:
authorJim Wilson <wilson@tuliptree.org>1996-12-11 22:04:46 +0000
committerJim Wilson <wilson@tuliptree.org>1996-12-11 22:04:46 +0000
commit51c6d73375141769320965074a80c05f109475f0 (patch)
treefb578be96023446f05c3732911718efe82ceff8e /sim/mips
parenteb28c55a5abaa7f5404f6aa7d218ce99787f81d3 (diff)
downloadgdb-51c6d73375141769320965074a80c05f109475f0.zip
gdb-51c6d73375141769320965074a80c05f109475f0.tar.gz
gdb-51c6d73375141769320965074a80c05f109475f0.tar.bz2
For NEC 4100/4300 project: Add little endian support and misc cleanups.
* gencode.c (build_instruction): Use !ByteSwapMem instead of BigEndianMem. * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete. (BigEndianMem): Rename to ByteSwapMem and change sense. (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change BigEndianMem references to !ByteSwapMem. (set_endianness): New function, with prototype. (sim_open): Call set_endianness. (sim_info): Use simBE instead of BigEndianMem. (xfer_direct_word, xfer_direct_long, swap_direct_word, swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word, xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER ifdefs, keeping the prototype declaration. (swap_word): Rewrite correctly. (ColdReset): Delete references to CONFIG. Delete endianness related code; moved to set_endianness.
Diffstat (limited to 'sim/mips')
-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 01f9e4a..4df7c58 100644
--- a/sim/mips/gencode.c
+++ b/sim/mips/gencode.c
@@ -2009,7 +2009,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 (%sBigEndianMem)\n",((insn->flags & LEFT) ? "!" : ""));
+ printf(" if (%s!ByteSwapMem)\n",((insn->flags & LEFT) ? "!" : ""));
printf(" paddr &= ~mask;\n");
if (isload) {