This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

SH sim: Fix PROCESS_SPECIAL_ADDRESS


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; \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]