aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/armemu.h
diff options
context:
space:
mode:
authorDavid McQuillan <dmcq@tao-group.com>2014-03-14 14:03:29 +0000
committerNick Clifton <nickc@redhat.com>2014-03-14 14:03:29 +0000
commitb9366cf3955d81e26537ea1932b183dbdf237361 (patch)
tree1f4e10e5525d8bd983a29f4f920b85620218bf30 /sim/arm/armemu.h
parente5b98723a5f36c5bc32d465deefd20c334627f5a (diff)
downloadgdb-b9366cf3955d81e26537ea1932b183dbdf237361.zip
gdb-b9366cf3955d81e26537ea1932b183dbdf237361.tar.gz
gdb-b9366cf3955d81e26537ea1932b183dbdf237361.tar.bz2
Prevent writes to R15 via LDR or LDM from changing the ARM/Thumb state in pre-v5 architectures.
PR sim/8388 * armemu.c (WriteR15Load): New function. Determines if the state can be changed upon a write to R15. (LoadMult): Use WriteR15Load. * armemu.h (WRITEDESTB): Use WriteR15Load.
Diffstat (limited to 'sim/arm/armemu.h')
-rw-r--r--sim/arm/armemu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/arm/armemu.h b/sim/arm/armemu.h
index 71bee27..d61c85a 100644
--- a/sim/arm/armemu.h
+++ b/sim/arm/armemu.h
@@ -402,7 +402,7 @@ extern ARMword isize;
do \
{ \
if (DESTReg == 15) \
- WriteR15Branch (state, d); \
+ WriteR15Load (state, d); \
else \
DEST = d; \
} \