summaryrefslogtreecommitdiff
path: root/plugins/arm/v7/opdefs
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-01-08 22:29:47 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-01-08 22:29:47 (GMT)
commit2ed3c9274c8dafb660bc25743a1aac7c72c12965 (patch)
treee3f20c5ebfe947163442144aba29a1d62462ac7d /plugins/arm/v7/opdefs
parent8f77fd4f0a73a92087b185af0b45d70607268107 (diff)
Marked the ARMv7 branch instructions with the LR register as return points.
Diffstat (limited to 'plugins/arm/v7/opdefs')
-rw-r--r--plugins/arm/v7/opdefs/A8827_bx.d4
-rw-r--r--plugins/arm/v7/opdefs/A8828_bxj.d14
2 files changed, 17 insertions, 1 deletions
diff --git a/plugins/arm/v7/opdefs/A8827_bx.d b/plugins/arm/v7/opdefs/A8827_bx.d
index 64ad628..337728f 100644
--- a/plugins/arm/v7/opdefs/A8827_bx.d
+++ b/plugins/arm/v7/opdefs/A8827_bx.d
@@ -52,6 +52,7 @@
@hooks {
fetch = help_fetching_with_instruction_bx_from_thumb
+ link = handle_armv7_conditional_branch_from_register
}
@@ -83,7 +84,8 @@
@hooks {
- fetch = help_fetching_with_instruction_bx_from_thumb
+ fetch = help_fetching_with_instruction_bx_from_arm
+ link = handle_armv7_conditional_branch_from_register
}
diff --git a/plugins/arm/v7/opdefs/A8828_bxj.d b/plugins/arm/v7/opdefs/A8828_bxj.d
index 7c6ddb5..f3a1bb7 100644
--- a/plugins/arm/v7/opdefs/A8828_bxj.d
+++ b/plugins/arm/v7/opdefs/A8828_bxj.d
@@ -49,6 +49,13 @@
}
+ @hooks {
+
+ fetch = help_fetching_with_instruction_bx_from_thumb
+ link = handle_armv7_conditional_branch_from_register
+
+ }
+
}
@encoding (A1) {
@@ -75,5 +82,12 @@
}
+ @hooks {
+
+ fetch = help_fetching_with_instruction_bx_from_arm
+ link = handle_armv7_conditional_branch_from_register
+
+ }
+
}