Commit e2d622c
authored
feat: increase MAX_MEMORY_SIZE from ~1 GiB to ~16 GiB (#1340)
The previous limit of 0x4000_0000 - BASE_ADDRESS (~1 GiB) was
arbitrary and insufficient for some nanvix related cases. Bump to
(16 GiB - BASE_ADDRESS) which is large enough for most use cases
while still preventing accidental resource exhaustion.
The BASE_ADDRESS subtraction is preserved for consistency with
the original definition.
Update test to validate the new ~16 GiB boundary.
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>1 parent 7b06312 commit e2d622c
1 file changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
180 | 177 | | |
181 | 178 | | |
182 | 179 | | |
| |||
690 | 687 | | |
691 | 688 | | |
692 | 689 | | |
693 | | - | |
694 | | - | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
695 | 693 | | |
696 | 694 | | |
697 | 695 | | |
| |||
0 commit comments