Skip to content

Commit ba7f4f2

Browse files
bors[bot]taiki-e
andauthored
Merge #99
99: Remove uses of unstable features and always use inline assembly r=Disasm a=taiki-e Currently, the `inline-asm` feature uses unstable features, but by replacing the uses of asm_const with `concat!`+`stringify`, the uses of unstable features can be removed. https://github.com/rust-embedded/riscv/blob/cd31989ba11d5d64e1addd8aab98bfb00dd927d5/src/lib.rs#L17-L18 Co-authored-by: Taiki Endo <te316e89@gmail.com>
2 parents cd31989 + 6d06810 commit ba7f4f2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+324
-1526
lines changed

.github/bors.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ delete_merged_branches = true
33
required_approvals = 1
44
status = [
55
"ci-linux (stable)",
6-
"ci-linux (1.42.0)",
6+
"ci-linux (1.59.0)",
77
"build-other (macOS-latest)",
88
"build-other (windows-latest)",
99
"Rustfmt"

.github/workflows/ci.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
continue-on-error: ${{ matrix.experimental || false }}
1212
strategy:
1313
matrix:
14-
# All generated code should be running on stable now, MRSV is 1.42.0
15-
rust: [nightly, stable, 1.42.0]
14+
# All generated code should be running on stable now, MRSV is 1.59.0
15+
rust: [nightly, stable, 1.59.0]
1616

1717
include:
1818
# Nightly is only for reference and allowed to fail
@@ -34,17 +34,10 @@ jobs:
3434
run: cargo check --target x86_64-unknown-linux-gnu
3535
- name: Run CI script for riscv32imac-unknown-none-elf under ${{ matrix.rust }}
3636
run: cargo check --target riscv32imac-unknown-none-elf
37-
- name: Run CI script for riscv32imac-unknown-none-elf (inline-asm) under ${{ matrix.rust }}
38-
run: |
39-
if [ "${{ matrix.rust }}" == "nightly" ]; then
40-
cargo check --target riscv32imac-unknown-none-elf --features inline-asm
41-
fi
4237
- name: Run CI script for riscv64imac-unknown-none-elf under ${{ matrix.rust }}
4338
run: cargo check --target riscv64imac-unknown-none-elf
4439
- name: Run CI script for riscv64gc-unknown-none-elf under ${{ matrix.rust }}
4540
run: cargo check --target riscv64gc-unknown-none-elf
46-
- name: Check blobs
47-
run: ./check-blobs.sh
4841

4942
# On macOS and Windows, we at least make sure that the crate builds and links.
5043
build-other:
@@ -63,4 +56,4 @@ jobs:
6356
toolchain: stable
6457
override: true
6558
- name: Build crate for host OS
66-
run: cargo build
59+
run: cargo build

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
Cargo.lock
22
target/
3-
bin/*.after
4-
bin/*.before
5-
bin/*.o

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1919
### Changed
2020

2121
- Use new `asm!` instead of `llvm_asm!`
22-
- Change `pmpcfgx::read()` macro to `read_csr_as!()` from `read_csr_as_usize!()`
22+
- Change `pmpcfgx::read()` macro to `read_csr_as!()` from `read_csr_as_usize!()`
23+
- Inline assembly is now always used
24+
- Update Minimum Supported Rust Version to 1.59
25+
26+
### Removed
27+
28+
- Remove `inline-asm` feature which is now always enabled
2329

2430
## [v0.7.0] - 2020-07-29
2531

Cargo.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "riscv"
33
version = "0.7.0"
4+
rust-version = "1.59"
45
repository = "https://github.com/rust-embedded/riscv"
56
authors = ["The RISC-V Team <risc-v@teams.rust-embedded.org>"]
67
categories = ["embedded", "hardware-support", "no-std"]
@@ -19,9 +20,3 @@ targets = [
1920
bare-metal = "1.0.0"
2021
bit_field = "0.10.0"
2122
embedded-hal = "0.2.6"
22-
23-
[build-dependencies]
24-
riscv-target = "0.1.2"
25-
26-
[features]
27-
inline-asm = []

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This project is developed and maintained by the [RISC-V team][team].
1212

1313
## Minimum Supported Rust Version (MSRV)
1414

15-
This crate is guaranteed to compile on stable Rust 1.42.0 and up. It *might*
15+
This crate is guaranteed to compile on stable Rust 1.59 and up. It *might*
1616
compile with older versions but that may change in any new patch release.
1717

1818
## License

asm.S

Lines changed: 0 additions & 289 deletions
This file was deleted.

0 commit comments

Comments
 (0)