fix a bug in debug-print when swap is not specified

a field doesn't exist that is accesed by a debug-print resource
in the case of swap being inactivated
This commit is contained in:
bunnie 2024-11-30 02:21:20 +08:00
parent 20b0ecd592
commit 6961bb3e54

View file

@ -290,6 +290,7 @@ impl MemoryManager {
self.ram_size
);
};
#[cfg(feature = "swap")]
for o in 0..self.ram_size / PAGE_SIZE {
unsafe {
println!(