From 88243721012e268e986b595462105ea7ac8028ee Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 13 May 2024 21:02:32 +0800 Subject: [PATCH] make debug a little more compact for the renode swap target --- kernel/src/arch/riscv/mem.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/src/arch/riscv/mem.rs b/kernel/src/arch/riscv/mem.rs index 3eb097ce1..6e0822dcc 100644 --- a/kernel/src/arch/riscv/mem.rs +++ b/kernel/src/arch/riscv/mem.rs @@ -310,6 +310,12 @@ impl MemoryMapping { continue; } let _superpage_addr = i as u32 * (1 << 22); + #[cfg(all(feature = "swap", feature = "renode"))] + // skip printing the mem-mapped swap for renode targets in swap debug, makes the PT dumps a lot + // more compact + if _superpage_addr & 0xF000_0000 == 0xA000_0000 { + continue; + } println!( " {:4} Superpage for {:08x} @ {:08x} (flags: {:?})", i,