From ca797a35d807f44709f5d4ea20e8538b77196d21 Mon Sep 17 00:00:00 2001 From: Vadim Kaushan Date: Mon, 1 Apr 2019 19:58:40 +0300 Subject: [PATCH 1/2] Fix Misa::has_extension() --- src/register/misa.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/register/misa.rs b/src/register/misa.rs index bd52508..44ae950 100644 --- a/src/register/misa.rs +++ b/src/register/misa.rs @@ -43,7 +43,7 @@ impl Misa { if bit > 25 { return false; } - self.bits() & (1 >> bit) == (1 >> bit) + self.bits() & (1 << bit) == (1 << bit) } } From c3ff23989e40a31eeb52f52f6bea1a69253b1691 Mon Sep 17 00:00:00 2001 From: Vadim Kaushan Date: Mon, 1 Apr 2019 19:59:10 +0300 Subject: [PATCH 2/2] Bump version (0.5.2) --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2ebf0f6..eb140a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "riscv" -version = "0.5.1" +version = "0.5.2" repository = "https://github.com/rust-embedded/riscv" authors = ["The RISC-V Team "] categories = ["embedded", "hardware-support", "no-std"]