Skip to content

Commit 69692a9

Browse files
committed
update dependencies
1 parent 429165b commit 69692a9

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
CARGO_TERM_COLOR: always
11+
RUSTFLAGS: "-C link-arg=-Thifive1-link.x --cfg portable_atomic_target_feature=\"zaamo\""
1112

1213
jobs:
1314
# On Linux, we check that the crate builds and links for all the toolchains and targets.
@@ -18,9 +19,10 @@ jobs:
1819
toolchain:
1920
- stable
2021
- nightly
21-
- 1.75.0
22+
- 1.76.0
2223
cargo_flags:
2324
- "clint-backend"
25+
- "mecall-backend"
2426
include:
2527
# Nightly is only for reference and allowed to fail
2628
- rust: nightly
@@ -34,10 +36,10 @@ jobs:
3436
toolchain: ${{ matrix.toolchain }}
3537
targets: riscv32i-unknown-none-elf,riscv32imc-unknown-none-elf,riscv32imac-unknown-none-elf,riscv64gc-unknown-none-elf
3638
- name: Build riscv32i-unknown-none-elf
37-
run: RUSTFLAGS="-C link-arg=-Thifive1-link.x" cargo build --workspace --target riscv32i-unknown-none-elf --features=${{ matrix.cargo_flags }}
39+
run: RUSTFLAGS=$RUSTFLAGS cargo build --workspace --target riscv32i-unknown-none-elf --features=${{ matrix.cargo_flags }}
3840
- name: Build riscv32imc-unknown-none-elf
39-
run: RUSTFLAGS="-C link-arg=-Thifive1-link.x" cargo build --workspace --target riscv32imc-unknown-none-elf --features=${{ matrix.cargo_flags }}
41+
run: RUSTFLAGS=$RUSTFLAGS cargo build --workspace --target riscv32imc-unknown-none-elf --features=${{ matrix.cargo_flags }}
4042
- name: Build riscv32imac-unknown-none-elf
41-
run: RUSTFLAGS="-C link-arg=-Thifive1-link.x" cargo build --target riscv32imac-unknown-none-elf --workspace --features=${{ matrix.cargo_flags }}
43+
run: RUSTFLAGS=$RUSTFLAGS cargo build --target riscv32imac-unknown-none-elf --workspace --features=${{ matrix.cargo_flags }}
4244
- name: Build riscv64gc-unknown-none-elf (no example)
4345
run: cargo build --target riscv64gc-unknown-none-elf --features=${{ matrix.cargo_flags }}

hifive1-test/.cargo/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ runner = "qemu-system-riscv32 -machine sifive_e,revb=true -nographic -kernel"
44
# runner = "probe-run --chip fe310-g002 --verbose"
55
rustflags = [
66
"-C", "link-arg=-Thifive1-link.x",
7+
"--cfg", "portable_atomic_target_feature=\"zaamo\"",
78
]
89

910
[build]

hifive1-test/Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ edition = "2021"
88
[dependencies]
99
riscv-slic = { path = "../riscv-slic" }
1010
riscv-rt = "0.13.0"
11-
hifive1 = { git = "https://github.com/greenlsi/hifive1.git", branch = "master", features = ["board-redv"] } # TODO use crates.io
12-
bare-metal = "0.2"
11+
hifive1 = { git = "https://github.com/riscv-rust/e310x.git", branch = "ehv1", features = ["board-redv"] }
1312
panic-halt = "0.2.0"
1413

1514
[features]
@@ -23,3 +22,7 @@ required-features = ["clint"]
2322
[[example]]
2423
name = "mecall"
2524
required-features = ["mecall"]
25+
26+
[[example]]
27+
name = "mecall_nested"
28+
required-features = ["mecall"]

riscv-slic/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ features = ["clint-backend"]
1717
[dependencies]
1818
critical-section = "1.2.0"
1919
heapless = "0.8.0"
20-
riscv = "0.12.0"
20+
riscv = "0.12.1"
2121
riscv-slic-macros = { path = "../riscv-slic-macros", version = "0.1.0" }
2222

2323
[features]

0 commit comments

Comments
 (0)