aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-03-20 17:48:02 +0000
committerNick Clifton <nickc@redhat.com>2001-03-20 17:48:02 +0000
commit3cf84db9ef43e186bb63c1d2bde43aaeef7d00ed (patch)
tree6bb902118e5921b8caea9485f317a162c6298b50 /sim
parent8e2eec6299985a70b0b17c6bd14c6a1c29e3db86 (diff)
downloadgdb-3cf84db9ef43e186bb63c1d2bde43aaeef7d00ed.zip
gdb-3cf84db9ef43e186bb63c1d2bde43aaeef7d00ed.tar.gz
gdb-3cf84db9ef43e186bb63c1d2bde43aaeef7d00ed.tar.bz2
Do not enable alignment checking when loading unaligned thumb instructions.
Diffstat (limited to 'sim')
-rw-r--r--sim/arm/ChangeLog5
-rw-r--r--sim/arm/armvirt.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog
index d3d5b1c..9f81f54 100644
--- a/sim/arm/ChangeLog
+++ b/sim/arm/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-20 Nick Clifton <nickc@redhat.com>
+
+ * armvirt.c (ARMul_ReLoadInstr): Do not enable alignment checking
+ when loading unaligned thumb instructions.
+
2001-03-06 Nick Clifton <nickc@redhat.com>
* thumbemu.c (ARMul_ThumbDecode): Delete label bo_blx2.
diff --git a/sim/arm/armvirt.c b/sim/arm/armvirt.c
index cca6aa0..15f2cb6 100644
--- a/sim/arm/armvirt.c
+++ b/sim/arm/armvirt.c
@@ -192,8 +192,8 @@ ARMul_ReLoadInstr (ARMul_State * state, ARMword address, ARMword isize)
if ((isize == 2) && (address & 0x2))
{
/* We return the next two halfwords: */
- ARMword lo = GetWord (state, address, TRUE);
- ARMword hi = GetWord (state, address + 4, TRUE);
+ ARMword lo = GetWord (state, address, FALSE);
+ ARMword hi = GetWord (state, address + 4, FALSE);
if (state->bigendSig == HIGH)
return (lo << 16) | (hi >> 16);