* armemu.h (NEGBRANCH): Do not overwrite the two most significant
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 20 Jun 2000 09:36:12 +0000 (09:36 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 20 Jun 2000 09:36:12 +0000 (09:36 +0000)
bits of the offset.

sim/arm/ChangeLog
sim/arm/armemu.h

index f7b7895..a2329be 100644 (file)
@@ -1,3 +1,8 @@
+2000-06-20  Alexandre Oliva  <aoliva@cygnus.com>
+
+       * armemu.h (NEGBRANCH): Do not overwrite the two most significant
+       bits of the offset.
+
 2000-05-25  Nick Clifton  <nickc@cygnus.com>
 
        * armcopro.c (MMUMCR): Only indicate mode change if a singal has
index b80c4ef..a51c67e 100644 (file)
@@ -342,7 +342,7 @@ extern ARMword isize;
 #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                               *