aboutsummaryrefslogtreecommitdiff
path: root/src/armv7.rs
diff options
context:
space:
mode:
authorSamuel Arnold <samuel.arnold@crowdstrike.com>2026-06-18 12:48:36 -0700
committeriximeow <me@iximeow.net>2026-06-19 21:33:11 +0000
commit1bff2519a50ac4e3ca98b4d874f70c02628c3f4a (patch)
tree82afd2744696ec5656f05f76e35cbff7f9d2c7ae /src/armv7.rs
parentfa24eedf78fb9fe2d87ac3f59763e25d3ba4462f (diff)
Add armv7::InstDecoder::in_thumb_mode() method
Diffstat (limited to 'src/armv7.rs')
-rw-r--r--src/armv7.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/armv7.rs b/src/armv7.rs
index cb46d60..2ce8122 100644
--- a/src/armv7.rs
+++ b/src/armv7.rs
@@ -1131,6 +1131,11 @@ impl InstDecoder {
self
}
+ /// returns whether the decoder is currently set to decode in Thumb mode
+ pub fn in_thumb_mode(&self) -> bool {
+ self.thumb
+ }
+
/// initialize a new `arm` `InstDecoder` with default ("everything") support, but in `thumb`
/// mode.
pub fn default_thumb() -> Self {