aboutsummaryrefslogtreecommitdiff
path: root/src/real_mode/isa_settings.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2025-06-01 08:46:23 +0000
committeriximeow <me@iximeow.net>2025-06-01 09:21:57 +0000
commit72968a35438e5284a0ba63c947e70f8880b3abb5 (patch)
tree5a266db6e590a42601c3bd63d41f999ed57a3a14 /src/real_mode/isa_settings.rs
parenta4204b5a3807bf41a2bb5801f874e7f263f8db1f (diff)
DecodeEverything wasn't useful, no better than InstDecoder::default()??
Diffstat (limited to 'src/real_mode/isa_settings.rs')
-rw-r--r--src/real_mode/isa_settings.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/real_mode/isa_settings.rs b/src/real_mode/isa_settings.rs
index 77ee7e2..10088d2 100644
--- a/src/real_mode/isa_settings.rs
+++ b/src/real_mode/isa_settings.rs
@@ -1,13 +1,10 @@
-use super::{BMI1, BMI2, DecodeError, DecodeEverything, InstDecoder, Instruction, Opcode};
+use super::{BMI1, BMI2, DecodeError, InstDecoder, Instruction, Opcode};
-crate::isa_settings::gen_arch_isa_settings!(
- Instruction, DecodeError, InstDecoder, DecodeEverything,
- revise_instruction
-);
+crate::isa_settings::gen_arch_isa_settings!(Instruction, DecodeError, InstDecoder);
/// optionally reject or reinterpret instruction according to settings for this decode
/// operation.
-fn revise_instruction<D: IsaSettings + ?Sized>(settings: &D, inst: &mut Instruction) -> Result<(), DecodeError> {
+pub(crate) fn revise_instruction(settings: &InstDecoder, inst: &mut Instruction) -> Result<(), DecodeError> {
if inst.prefixes.evex().is_some() {
if !settings.avx512() {
return Err(DecodeError::InvalidOpcode);