Merge #26
26: Fix Misa::has_extension() r=dvc94ch a=Disasm Co-authored-by: Vadim Kaushan <admin@disasm.info>
This commit is contained in:
commit
1e514648fd
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "riscv"
|
name = "riscv"
|
||||||
version = "0.5.1"
|
version = "0.5.2"
|
||||||
repository = "https://github.com/rust-embedded/riscv"
|
repository = "https://github.com/rust-embedded/riscv"
|
||||||
authors = ["The RISC-V Team <risc-v@teams.rust-embedded.org>"]
|
authors = ["The RISC-V Team <risc-v@teams.rust-embedded.org>"]
|
||||||
categories = ["embedded", "hardware-support", "no-std"]
|
categories = ["embedded", "hardware-support", "no-std"]
|
||||||
|
|
|
@ -43,7 +43,7 @@ impl Misa {
|
||||||
if bit > 25 {
|
if bit > 25 {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
self.bits() & (1 >> bit) == (1 >> bit)
|
self.bits() & (1 << bit) == (1 << bit)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue