hypervisor: emulator: Format instructions on error paths

Formatting instructions might be costly, so we only want to do that on
the emulation error paths.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2020-12-01 00:00:53 +01:00
parent 3fa6e17cc4
commit 15f0451c34
4 changed files with 28 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ features = ["elf", "bzimage"]
[dependencies.iced-x86]
version = "1.9.1"
default-features = false
features = ["std", "decoder", "op_code_info", "instr_info"]
features = ["std", "decoder", "op_code_info", "instr_info", "fast_fmt"]
[dev-dependencies]
env_logger = "0.8.2"