Skip to content

Commit 6857476

Browse files
committed
fix: 修改 bench-kernel 名字
Signed-off-by: YdrMaster <[email protected]>
1 parent 7baff52 commit 6857476

File tree

7 files changed

+17
-19
lines changed

7 files changed

+17
-19
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
6-
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
76

87
## [Unreleased]
98

109
### Added
1110

1211
- Hint spin loop in hart state monitor module
12+
- Add bench-kernel crate to workspace for sbi call bench
1313

1414
### Modified
1515

Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[workspace]
2-
members = ["rustsbi-qemu", "test-kernel", "legacy-console-bench", "xtask"]
2+
members = ["rustsbi-qemu", "test-kernel", "bench-kernel", "xtask"]
33
default-members = ["xtask"]

legacy-console-bench/Cargo.toml renamed to bench-kernel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "legacy-console-bench"
2+
name = "bench-kernel"
33
version = "0.1.0"
44
edition = "2021"
55

File renamed without changes.
File renamed without changes.

xtask/src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,7 @@ impl QemuArgs {
128128
let kernel = self.build.kernel.take().unwrap_or_else(|| "test".into());
129129
let kernel = match kernel.to_lowercase().as_str() {
130130
"test" | "test-kernel" => objcopy(self.build.make("test-kernel"), true),
131-
"bench" | "legacy-console-bench" => {
132-
objcopy(self.build.make("legacy-console-bench"), true)
133-
}
131+
"bench" | "bench-kernel" => objcopy(self.build.make("bench-kernel"), true),
134132
_ => panic!(),
135133
};
136134
let status = Qemu::system("riscv64")
@@ -163,7 +161,7 @@ fn package<T: AsRef<str>>(name: Option<T>) -> &'static str {
163161
if let Some(t) = name {
164162
match t.as_ref().to_lowercase().as_str() {
165163
"test" | "test-kernel" => "test-kernel",
166-
"bench" | "legacy-console-bench" => "legacy-console-bench",
164+
"bench" | "bench-kernel" => "bench-kernel",
167165
"rustsbi" | "rustsbi-qemu" => "rustsbi-qemu",
168166
_ => panic!(),
169167
}

0 commit comments

Comments
 (0)