sunflower-embedded-system-emulator icon indicating copy to clipboard operation
sunflower-embedded-system-emulator copied to clipboard

`Uncertain_sizemem()`: Cannot compute required number of covariances without overflow

Open SamuelmsWong-zz opened this issue 5 years ago • 0 comments

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

SamuelmsWong-zz avatar Sep 04 '19 15:09 SamuelmsWong-zz