Skip to content

Commit

Permalink
Decoder: remove Option around flag fields
Browse files Browse the repository at this point in the history
They should no longer be required with modern versions of Zydis.
  • Loading branch information
athre0z committed Dec 10, 2023
1 parent 8c5a7a3 commit c4ea4ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ffi/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ pub struct DecodedInstruction {
/// The bits in the masks correspond to the actual bits in the
/// `FLAGS/EFLAGS/RFLAGS` register.
// https://github.com/zyantific/zydis/issues/319
pub cpu_flags: Option<&'static AccessedFlags<CpuFlag>>,
pub cpu_flags: &'static AccessedFlags<CpuFlag>,
/// Information about FPU flags accessed by the instruction.
pub fpu_flags: Option<&'static AccessedFlags<FpuFlag>>,
pub fpu_flags: &'static AccessedFlags<FpuFlag>,
/// Extended information for `AVX` instructions.
pub avx: AvxInfo,
/// Meta info.
Expand Down

0 comments on commit c4ea4ae

Please sign in to comment.