aboutsummaryrefslogtreecommitdiff
path: root/src/armv8
diff options
context:
space:
mode:
Diffstat (limited to 'src/armv8')
-rw-r--r--src/armv8/a64.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs
index d640292..e58d2a2 100644
--- a/src/armv8/a64.rs
+++ b/src/armv8/a64.rs
@@ -116,6 +116,18 @@ mod docs {
}
}
+#[allow(non_snake_case)]
+impl <T: std::fmt::Write> ShowContextual<u64, [Option<String>], T> for Instruction {
+ fn contextualize(&self, colors: Option<&ColorSettings>, address: u64, context: Option<&[Option<String>]>, out: &mut T) -> std::fmt::Result {
+ write!(out, "{}", self)
+ }
+}
+
+#[cfg(feature="use-serde")]
+#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
+pub struct ARMv8 { }
+
+#[cfg(not(feature="use-serde"))]
#[derive(Copy, Clone, Debug)]
pub struct ARMv8 { }