aboutsummaryrefslogtreecommitdiff
path: root/src/long_mode/evex.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-12-17 11:03:37 -0800
committeriximeow <me@iximeow.net>2021-12-17 11:03:37 -0800
commit060fb29180f354e04ec8d48f0128433b634fa3c5 (patch)
tree7cd153be76e7e8a50d1d42f929aa4da8d86f5b69 /src/long_mode/evex.rs
parent2c332661b5ccf116a468e1e23711017d77c1531a (diff)
write `apply_disp_scale` in a mode-agnostic way
`apply_disp_scale` forgot that `wrapping_mul` exists, so we don't need to explicitly write the size of value that `mem_size` should be cast to, in casting to/from a signed integer. taken with `.into()`, we don't need per-architecture stubs to make evex decoding work.
Diffstat (limited to 'src/long_mode/evex.rs')
-rw-r--r--src/long_mode/evex.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/long_mode/evex.rs b/src/long_mode/evex.rs
index 5c0967b..2c0d765 100644
--- a/src/long_mode/evex.rs
+++ b/src/long_mode/evex.rs
@@ -10,9 +10,5 @@ fn isa_has_qwords() -> bool {
true
}
-fn apply_disp_scale(inst: &mut Instruction) {
- inst.disp = ((inst.disp as i64) * (inst.mem_size as i64)) as u64;
-}
-
include!("../shared/generated_evex.in");
include!("../shared/evex.in");