1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use super::{aux_t, AuxValue, Sealed};

crate::bitflags! {
    #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub enum Features: usize {
        ISA_A = 1 << 0,
        ISA_C = 1 << 2,
        ISA_D = 1 << 3,
        ISA_F = 1 << 5,
        ISA_I = 1 << 8,
        ISA_M = 1 << 12,
    }

    impl Sealed for Features {}
    impl AuxValue for Features {
        fn from(value: aux_t) -> Self {
            (value as usize).into()
        }
    }
}

pub type Features2 = usize;