sunflower-embedded-system-emulator
sunflower-embedded-system-emulator copied to clipboard
`Uncertain_sizemem()`: Cannot compute required number of covariances without overflow
If given an exceedingly large memory size, the uncertain_sizemem()
function will return an error stating "Cannot compute required number of covariances without overflow
".
According to the code in uncertain_sizemem()
, found in inst_uncertain.c:391
:
if ( (size - 0x4000) / 4 > (1<< 16))
an error is raised.
Is the memory provided for uncertain registers the same memory as that provided for the whole processor (S->MEM
)?
I don't fully understand how this works so I'll leave it as an issue.
For your information, the main sizemem
function is defined in main.c:2019