This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
SH sim: Fix PROCESS_SPECIAL_ADDRESS
- To: "gdb-patches at sources dot redhat dot com" <gdb-patches at sources dot redhat dot com>
- Subject: SH sim: Fix PROCESS_SPECIAL_ADDRESS
- From: Ralf Corsepius <corsepiu at faw dot uni-ulm dot de>
- Date: Fri, 26 Jan 2001 05:26:49 +0100
- Organization: Ralf Corsepius
- Reply-To: corsepiu at faw dot uni-ulm dot de
The patch below fixes something which I think is an apparent bug in
the SH simulator:
After calling IOMEM, PROCESS_SPECIAL_ADDRESS currently always calls
raise_buserror (raises SIGBUS). This bogusly raises SIGBUS on area 5
accesses in IOMEM and renders the SCI1-IO emulation code in IOMEM
unusable.
Regards,
Ralf
--
Ralf Corsepius
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung
(FAW)
Helmholtzstr. 16, 89081 Ulm, Germany Tel: +49/731/501-8690
mailto:corsepiu@faw.uni-ulm.de FAX: +49/731/501-999
http://www.faw.uni-ulm.de
Index: sim/sh/interp.c
===================================================================
RCS file: /cvs/src/src/sim/sh/interp.c,v
retrieving revision 1.3
diff -u -r1.3 interp.c
--- interp.c 2001/01/24 13:17:01 1.3
+++ interp.c 2001/01/26 03:55:48
@@ -340,6 +340,7 @@
{ \
if (bits_written == 8 && addr > 0x5000000) \
IOMEM (addr, 1, data); \
+ else \
/* We can't do anything useful with the other stuff, so fail. */ \
raise_buserror (); \
return retval; \