Improve test in thread_manager, increase memory size to make it fit

This commit is contained in:
Quentin Legot
2023-04-04 22:01:49 +02:00
parent a001e45c3f
commit 0fd2815a59
4 changed files with 20 additions and 13 deletions

View File

@ -490,7 +490,7 @@ impl Loader {
}
}
}
Ok(start_index as u64 + end_index)
Ok(start_index as u64 + end_index + 4)
}
/// Load the binary file and store it inside an array and try to parse it,

View File

@ -75,7 +75,7 @@ pub const NUM_PHY_PAGE : u64 = 400;
/// Must be 2^x
pub const PAGE_SIZE : u64 = 128;
/// Must be a multiple of PAGE_SIZE
pub const MEM_SIZE : usize = (PAGE_SIZE*NUM_PHY_PAGE*100) as usize;
pub const MEM_SIZE : usize = (PAGE_SIZE*NUM_PHY_PAGE*100_000) as usize;
/// RISC-V Simulator
pub struct Machine {