Skip to content

Commit c8e3fd4

Browse files
committed
Remove feature flags and add rv64
1 parent d140381 commit c8e3fd4

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
cargo install cargo-binutils
2828
rustup component add llvm-tools-preview
2929
- name: Check
30-
run: cargo check --features cortex-m --target thumbv7em-none-eabi
30+
run: cargo check --target thumbv7em-none-eabi
3131
- name: Clippy
32-
run: cargo clippy --features cortex-m --target thumbv7em-none-eabi
32+
run: cargo clippy --target thumbv7em-none-eabi
3333
- name: Format
3434
run: cargo fmt

Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ default = ["erase-chip", "panic-handler"]
1515
erase-chip = []
1616
panic-handler = []
1717
verify = []
18-
cortex-m = []
19-
risc-v = []

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn panic(_info: &core::panic::PanicInfo) -> ! {
2121
unsafe {
2222
#[cfg(target_arch = "arm")]
2323
core::arch::asm!("udf #0");
24-
#[cfg(target_arch = "riscv32")]
24+
#[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))]
2525
core::arch::asm!("UNIMP");
2626
core::hint::unreachable_unchecked();
2727
}

0 commit comments

Comments
 (0)