deps: bump iced-x86 from 1.10.3 to 1.11.0

Bumps iced-x86 from 1.10.3 to 1.11.0.

Manual update of the code was needed since memory_displacement() was
deprecated and replaced with either memory_displacement32() or
memory_displacement64().

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2021-03-22 15:39:51 +01:00
committed by Rob Bradford
parent 1e11e6789a
commit d370ea585b
3 changed files with 6 additions and 31 deletions

View File

@@ -27,7 +27,7 @@ vm-memory = { version = "0.5.0", features = ["backend-mmap", "backend-atomic"] }
vmm-sys-util = { version = ">=0.5.0", features = ["with-serde"] }
[target.'cfg(target_arch = "x86_64")'.dependencies.iced-x86]
version = "1.10"
version = "1.11"
default-features = false
features = ["std", "decoder", "op_code_info", "instr_info", "fast_fmt"]

View File

@@ -131,7 +131,7 @@ fn memory_operand_address<T: CpuStateManager>(
address += index;
}
address += insn.memory_displacement() as u64;
address += insn.memory_displacement64();
// Translate to a linear address.
state.linearize(insn.memory_segment(), address, write)