This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
armemu's NEGBRANCH clobbers some bits of the branch offset
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: armemu's NEGBRANCH clobbers some bits of the branch offset
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 20 Jun 2000 06:35:33 -0300
- Organization: GCC Team, Red Hat
I'm checking this in, approved by Nick Clifton:
Index: sim/arm/ChangeLog
from Alexandre Oliva <aoliva@cygnus.com>
* armemu.h (NEGBRANCH): Do not overwrite the two most significant
bits of the offset.
Index: sim/arm/armemu.h
===================================================================
RCS file: /cvs/src/src/sim/arm/armemu.h,v
retrieving revision 1.2
diff -u -r1.2 armemu.h
--- sim/arm/armemu.h 2000/02/08 20:54:27 1.2
+++ sim/arm/armemu.h 2000/06/20 09:28:33
@@ -342,7 +342,7 @@
#define STORESMULT(instr,address,wb) StoreSMult(state,instr,address,wb)
#define POSBRANCH ((instr & 0x7fffff) << 2)
-#define NEGBRANCH (0xff000000 | ((instr & 0xffffff) << 2))
+#define NEGBRANCH (0xfc000000 | ((instr & 0xffffff) << 2))
/***************************************************************************\
* Values for Emulate *
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me