From 7db16f6cf8d5c63fa0c3c517ad13002184d1adda Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 24 Jul 2025 00:29:42 +0800 Subject: [PATCH] cleanup dependencies in loader for vexii on cram-soc --- loader/src/main.rs | 2 +- loader/src/phase2.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/src/main.rs b/loader/src/main.rs index 0a4b897d5..976041287 100644 --- a/loader/src/main.rs +++ b/loader/src/main.rs @@ -167,7 +167,7 @@ pub unsafe extern "C" fn rust_entry(signed_buffer: *const usize, signature: u32) loop {} }; - #[cfg(feature = "vexii-test")] + #[cfg(all(feature = "vexii-test", not(feature = "verilator-only")))] { // fake the prehash use ed25519_dalek_loader::Digest; diff --git a/loader/src/phase2.rs b/loader/src/phase2.rs index eb2e67607..16a6c1c2e 100644 --- a/loader/src/phase2.rs +++ b/loader/src/phase2.rs @@ -339,7 +339,7 @@ pub fn phase_2(cfg: &mut BootConfig, fs_prehash: &[u8; 64]) { 1, // Kernel is PID 1 ); } - #[cfg(feature = "debug-print")] + #[cfg(all(feature = "debug-print", not(feature = "verilator-only")))] // print the kernel's page table mappings as a sanity check on the loader debug::print_pagetable(cfg.processes[0].satp);