diff options
author | iximeow <me@iximeow.net> | 2023-07-06 02:06:56 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2023-07-06 02:06:56 -0700 |
commit | d1e33d5eb35d39836612cd5e7c0315460adf7017 (patch) | |
tree | 53bed247fc2faa3f7a8264170fbfa6d06ec87fd4 /src/long_mode | |
parent | d48909eaa7263e5395d2124f8b20117cd0e1e981 (diff) |
M_Gv should be unreachable too...
Diffstat (limited to 'src/long_mode')
-rw-r--r-- | src/long_mode/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index c0e89e5..3cfa043 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -5438,7 +5438,7 @@ enum OperandCode { Gv_Ev = OperandCodeBuilder::new().read_E().only_modrm_operands().reg_mem().operand_case(OperandCase::Internal).bits(), Gv_M = OperandCodeBuilder::new().read_E().only_modrm_operands().reg_mem().deny_regmmm().operand_case(OperandCase::Gv_M).bits(), MOVDIR64B = OperandCodeBuilder::new().read_E().reg_mem().deny_regmmm().operand_case(OperandCase::MOVDIR64B).bits(), - M_Gv = OperandCodeBuilder::new().read_E().mem_reg().deny_regmmm().operand_case(OperandCase::Internal).bits(), + M_Gv = OperandCodeBuilder::new().read_E().only_modrm_operands().mem_reg().deny_regmmm().operand_case(OperandCase::Internal).bits(), Gv_Ev_Ib = OperandCodeBuilder::new().read_E().reg_mem().operand_case(OperandCase::Gv_Ev_Ib).bits(), Gv_Ev_Iv = OperandCodeBuilder::new().read_E().reg_mem().operand_case(OperandCase::Gv_Ev_Iv).bits(), Rv_Gmm_Ib = OperandCodeBuilder::new().read_modrm().read_E().reg_mem().operand_case(OperandCase::Rv_Gmm_Ib).bits(), @@ -7105,6 +7105,7 @@ fn read_operands< // match operand_code { match operand_code.operand_case_handler_index() { + // these operand cases are all `only_*`, and are unreachable here.. OperandCase::Internal | OperandCase::Gv_M | OperandCase::Ibs | OperandCase::Jvds => { } |