From bd56c0b0fb0e2594288a41cf6fa9fc8aa5ff9c0e Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 20 Nov 2021 15:04:43 -0800 Subject: quiet some warnings --- src/armv8/a64.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/armv8') diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs index 5531c8f..0b29bb9 100644 --- a/src/armv8/a64.rs +++ b/src/armv8/a64.rs @@ -147,7 +147,7 @@ mod docs { let exp = imm8 >> 4; let exp = (exp as i16) << 13 >> 13; let exp = exp ^ 0b1_00_0000_0000; - let frac = (imm8 << 4); + let frac = imm8 << 4; let bits = ((sign as u64) << 63) | (((exp as u64) & 0b1_11_1111_1111) << 52) | @@ -5786,7 +5786,7 @@ impl Decoder for InstDecoder { 0b01001 => { // conditional branch (imm) // probably actually an invalid opcode? return Err(DecodeError::IncompleteDecoder); - inst.opcode = Opcode::Invalid; + // inst.opcode = Opcode::Invalid; } /* 0b01010 to 0b01111 seem all invalid? */ 0b10000 | -- cgit v1.1