This patch should fix the build on mipsel but I didn't tested it yet...
diff -ur gnat-gdb-5.3.gnat.0.0.20030225/sim/mips/interp.c
gnat-gdb-5.3.gnat.0.0.20030225.new/sim/mips/interp.c
--- gnat-gdb-5.3.gnat.0.0.20030225/sim/mips/interp.c 2003-01-16
10:52:51.000000000 +0100
+++ gnat-gdb-5.3.gnat.0.0.20030225.new/sim/mips/interp.c 2005-09-04
23:46:06.045197120 +0200
@@ -2323,7 +2323,7 @@
sim_io_eprintf (sd, "mips-core: %d byte %s to unmapped address 0x%lx at
0x%lx\n",
nr_bytes, copy,
(unsigned long) addr, (unsigned long) ip);
- COP0_BADVADDR = addr;
+ COP0_BADVADDR_LV = addr;
SignalExceptionDataReference();
break;
@@ -2331,7 +2331,7 @@
sim_io_eprintf (sd, "mips-core: %d byte %s to unaligned address 0x%lx at
0x%lx\n",
nr_bytes, copy,
(unsigned long) addr, (unsigned long) ip);
- COP0_BADVADDR = addr;
+ COP0_BADVADDR_LV = addr;
if(transfer == read_transfer)
SignalExceptionAddressLoad();
else
diff -ur gnat-gdb-5.3.gnat.0.0.20030225/sim/mips/sim-main.h
gnat-gdb-5.3.gnat.0.0.20030225.new/sim/mips/sim-main.h
--- gnat-gdb-5.3.gnat.0.0.20030225/sim/mips/sim-main.h 2003-01-16
11:40:16.000000000 +0100
+++ gnat-gdb-5.3.gnat.0.0.20030225.new/sim/mips/sim-main.h 2005-09-04
23:45:30.108660304 +0200
@@ -384,6 +384,7 @@
unsigned_word cop0_gpr[NR_COP0_GPR];
#define COP0_GPR ((CPU)->cop0_gpr)
#define COP0_BADVADDR ((unsigned32)(COP0_GPR[8]))
+#define COP0_BADVADDR_LV (COP0_GPR[8])
/* While space is allocated for the floating point registers in the
main registers array, they are stored separatly. This is because
Gruesse,
--
Frank Lichtenheld <[EMAIL PROTECTED]>
www: http://www.djpig.de/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]