aboutsummaryrefslogtreecommitdiff
path: root/src/long_mode/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/long_mode/mod.rs')
-rw-r--r--src/long_mode/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs
index 56fd90f..c30f0e1 100644
--- a/src/long_mode/mod.rs
+++ b/src/long_mode/mod.rs
@@ -1135,6 +1135,12 @@ pub enum DecodeError {
IncompleteDecoder,
}
+impl DecodeError {
+ pub fn to_generic(&self) -> crate::generic::DecodeError {
+ panic!("TODO")
+ }
+}
+
impl yaxpeax_arch::DecodeError for DecodeError {
fn data_exhausted(&self) -> bool { self == &DecodeError::ExhaustedInput }
fn bad_opcode(&self) -> bool { self == &DecodeError::InvalidOpcode }
@@ -2119,6 +2125,10 @@ impl Default for Instruction {
}
impl Instruction {
+ pub fn to_generic(&self) -> crate::generic::Instruction {
+ panic!("TODO");
+ }
+
/// get the `Opcode` of this instruction.
pub fn opcode(&self) -> Opcode {
self.opcode