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);