aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG5
-rw-r--r--Cargo.toml2
-rw-r--r--src/armv8/a64.rs16
3 files changed, 14 insertions, 9 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 13cffe2..98100f6 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+## 0.1.3
+* same as 0.1.2, but fixes a few compilation warnings that snuck in too.
+
## 0.1.2
* fix some instructions in aarch64 decoding panicking with "unreachable"
instead of returning an `Err(DecodeError::Incomplete)`. similarly, some
@@ -6,6 +9,8 @@
* fix some instructions in armv7 decoding or display panicking instead of
displaying a valid instruction, or returning a decode error.
+... subsequently yanked because some compilation warnings ended up in this version.
+
## 0.1.1
* fix incorrect `yaxpeax_arch::Arch` impl for `std`-enabled builds
(DecodeError did not implement `std::error::Error` in those build environments)
diff --git a/Cargo.toml b/Cargo.toml
index de3274c..8c6becc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "yaxpeax-arm"
-version = "0.1.2"
+version = "0.1.3"
authors = [ "iximeow <me@iximeow.net>" ]
license = "0BSD"
repository = "http://git.iximeow.net/yaxpeax-arm/"
diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs
index 4c9da27..453778e 100644
--- a/src/armv8/a64.rs
+++ b/src/armv8/a64.rs
@@ -1717,10 +1717,10 @@ impl Decoder<ARMv8> for InstDecoder {
},
0b111 => {
// extract
- let Rd = word & 0x1f;
- let Rn = (word >> 5) & 0x1f;
+ // let Rd = word & 0x1f;
+ // let Rn = (word >> 5) & 0x1f;
let imms = (word >> 10) & 0x3f;
- let Rm = (word >> 16) & 0x1f;
+ // let Rm = (word >> 16) & 0x1f;
let No0 = (word >> 21) & 0x3;
let sf_op21 = word >> 29;
@@ -2005,14 +2005,14 @@ impl Decoder<ARMv8> for InstDecoder {
0b10000 => {
// load/store no-allocate pair (offset)
// V == 0
- let opc_L = ((word >> 22) & 1) | ((word >> 29) & 0x6);
+ // let opc_L = ((word >> 22) & 1) | ((word >> 29) & 0x6);
// eprintln!("C3.3.7 V==0, opc_L: {}", opc_L);
return Err(DecodeError::IncompleteDecoder);
},
0b10100 => {
// load/store no-allocate pair (offset)
// V == 1
- let opc_L = ((word >> 22) & 1) | ((word >> 29) & 0x6);
+ // let opc_L = ((word >> 22) & 1) | ((word >> 29) & 0x6);
// eprintln!("C3.3.7 V==1, opc_L: {}", opc_L);
return Err(DecodeError::IncompleteDecoder);
},
@@ -2071,7 +2071,7 @@ impl Decoder<ARMv8> for InstDecoder {
0b10101 => {
// load/store register pair (post-indexed)
// V == 1
- let opc_L = ((word >> 22) & 1) | ((word >> 29) & 0x6);
+ // let opc_L = ((word >> 22) & 1) | ((word >> 29) & 0x6);
// eprintln!("C3.3.15 V==1, opc_L: {}", opc_L);
return Err(DecodeError::IncompleteDecoder);
},
@@ -2130,7 +2130,7 @@ impl Decoder<ARMv8> for InstDecoder {
0b10110 => {
// load/store register pair (offset)
// V == 1
- let opc_L = ((word >> 22) & 1) | ((word >> 29) & 0x6);
+ // let opc_L = ((word >> 22) & 1) | ((word >> 29) & 0x6);
// eprintln!("C3.3.14 V==1, opc_L: {}", opc_L);
return Err(DecodeError::IncompleteDecoder);
},
@@ -2189,7 +2189,7 @@ impl Decoder<ARMv8> for InstDecoder {
0b10111 => {
// load/store register pair (pre-indexed)
// V == 1
- let opc_L = ((word >> 22) & 1) | ((word >> 29) & 0x6);
+ // let opc_L = ((word >> 22) & 1) | ((word >> 29) & 0x6);
// eprintln!("C3.3.16 V==1, opc_L: {}", opc_L);
return Err(DecodeError::IncompleteDecoder);
},