Fix definition of NEGBRANCH
authorNick Clifton <nickc@redhat.com>
Mon, 12 Feb 2001 23:29:49 +0000 (23:29 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 12 Feb 2001 23:29:49 +0000 (23:29 +0000)
sim/arm/ChangeLog
sim/arm/armemu.h

index 0bd88b5..ac6e453 100644 (file)
@@ -1,3 +1,7 @@
+2001-02-12  Nick Clifton  <nickc@redhat.com>
+
+       * armemu.h (NEGBRANCH): Fix defintion.
+
 2001-02-01  Nick Clifton  <nickc@redhat.com>
 
        * armemu.c (LoadSMult): Update base address register after
index 8fd5f35..4d4406d 100644 (file)
@@ -390,7 +390,8 @@ extern ARMword isize;
 #define STORESMULT(instr,address,wb) StoreSMult(state,instr,address,wb)
 
 #define POSBRANCH ((instr & 0x7fffff) << 2)
-#define NEGBRANCH (0xfc000000 | ((instr & 0xffffff) << 2))
+#define NEGBRANCH ((0xff000000 |(instr & 0xffffff)) << 2)
+
 
 /***************************************************************************\
 *                          Values for Emulate                               *