aboutsummaryrefslogtreecommitdiff
path: root/sim/arm
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-02-12 23:29:49 +0000
committerNick Clifton <nickc@redhat.com>2001-02-12 23:29:49 +0000
commit179ae6ea64567f2be7d760c619c6a470b3de520c (patch)
tree433a6cd7c40d4cac16846acafb70cca48b8acafc /sim/arm
parent51e0a107ce0d77917c517ffad60239e1476aee3e (diff)
downloadgdb-179ae6ea64567f2be7d760c619c6a470b3de520c.zip
gdb-179ae6ea64567f2be7d760c619c6a470b3de520c.tar.gz
gdb-179ae6ea64567f2be7d760c619c6a470b3de520c.tar.bz2
Fix definition of NEGBRANCH
Diffstat (limited to 'sim/arm')
-rw-r--r--sim/arm/ChangeLog4
-rw-r--r--sim/arm/armemu.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog
index 0bd88b5..ac6e453 100644
--- a/sim/arm/ChangeLog
+++ b/sim/arm/ChangeLog
@@ -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
diff --git a/sim/arm/armemu.h b/sim/arm/armemu.h
index 8fd5f35..4d4406d 100644
--- a/sim/arm/armemu.h
+++ b/sim/arm/armemu.h
@@ -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 *