aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 {