fix main memory patching for swap config on precursor

This commit is contained in:
bunnie 2024-04-04 19:24:38 +08:00
parent cf32b4edb5
commit 2a68ee098f

View file

@ -366,6 +366,8 @@ fn main() {
if s.offset < ram_config.offset + ram_config.size {
ram_config.size = s.offset - ram_config.offset;
}
args.ram_start = ram_config.offset;
args.ram_length = ram_config.size;
}
// Note that other configurations don't split RAM, since the swap is provisioned directly
// in hardware, and thus, no post-processing is required.