diff options
Diffstat (limited to 'src/decode.rs')
| -rw-r--r-- | src/decode.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/decode.rs b/src/decode.rs index 21a1e64..4258a6f 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -85,15 +85,10 @@ impl Instruction { imm_20 | imm_10_1 | imm_11 | imm_19_12 } - // The following are AFAIK only used for shift by immediate operations - + /// Technically part of immediate. Only used to determine shift type for immediate shifts afaik + /// 32bit ones use funct7 in this way #[inline] pub fn funct6(self) -> u8 { (self.0 >> 26 & 0x3f) as u8 } - - #[inline] - pub fn imm_shamt(self) -> usize { - (self.0 >> 20 & 0x3f) as usize - } } |
