image.cpp: don't try to make code heap bigger than p->code_size since on PPC this will cause crashes if the image has a code heap of exactly 32Mb
parent
6d296b6504
commit
46688f960d
|
@ -53,10 +53,8 @@ cell code_relocation_base;
|
|||
|
||||
static void load_code_heap(FILE *file, image_header *h, vm_parameters *p)
|
||||
{
|
||||
cell good_size = h->code_size + (1 << 19);
|
||||
|
||||
if(good_size > p->code_size)
|
||||
p->code_size = good_size;
|
||||
if(h->code_size > p->code_size)
|
||||
fatal_error("Code heap too small to fit image",h->code_size);
|
||||
|
||||
init_code_heap(p->code_size);
|
||||
|
||||
|
|
Loading…
Reference in New Issue