From 6b57f301db5bcce4506a0a6d4d10bd81259897ca Mon Sep 17 00:00:00 2001 From: Ruoqing He Date: Wed, 4 Dec 2024 16:13:21 +0800 Subject: [PATCH] vm-allocator: Enable arch module for riscv64 `arch` module are required to provide definitions for riscv64 system irq and memroy allocation, enabling `arch` module in target specific dependencies section. Signed-off-by: Ruoqing He --- vm-allocator/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm-allocator/Cargo.toml b/vm-allocator/Cargo.toml index 7e5b2be29..2782bb7d7 100644 --- a/vm-allocator/Cargo.toml +++ b/vm-allocator/Cargo.toml @@ -8,5 +8,5 @@ version = "0.1.0" libc = "0.2.167" vm-memory = { workspace = true } -[target.'cfg(target_arch = "aarch64")'.dependencies] +[target.'cfg(any(target_arch = "aarch64", target_arch = "riscv64"))'.dependencies] arch = { path = "../arch" }