Use capstone to validate precise-output tests (#5780)
Use the capstone library to disassemble precise-output tests, in addition to pretty-printing their vcode.
This commit is contained in:
@@ -307,6 +307,12 @@ pub trait TargetIsa: fmt::Display + Send + Sync {
|
||||
{
|
||||
Arc::new(self)
|
||||
}
|
||||
|
||||
/// Generate a `Capstone` context for disassembling bytecode for this architecture.
|
||||
#[cfg(feature = "disas")]
|
||||
fn to_capstone(&self) -> Result<capstone::Capstone, capstone::Error> {
|
||||
Err(capstone::Error::UnsupportedArch)
|
||||
}
|
||||
}
|
||||
|
||||
/// Methods implemented for free for target ISA!
|
||||
|
||||
Reference in New Issue
Block a user