e2k: Increase PCS and PS sizes.

Dynamically expanding the stack has not yet been
implemented, but sometimes applications require
larger stacks.

Signed-off-by: Denis Drakhnya <numas13@gmail.com>
This commit is contained in:
Denis Drakhnia 2021-02-12 22:38:09 +02:00 committed by Denis Drakhnia
parent 9146c4c67f
commit 3cf004027d
2 changed files with 4 additions and 2 deletions

View File

@ -1642,7 +1642,7 @@ void e2k_pcs_new(E2KPcsState *pcs)
pcs->is_readable = true;
pcs->is_writable = true;
pcs->index = 0;
pcs->size = TARGET_PAGE_SIZE;
pcs->size = E2K_DEFAULT_PCS_SIZE;
pcs->base = e2k_mmap(pcs->size);
}
@ -1651,7 +1651,7 @@ void e2k_ps_new(E2KPsState *ps)
ps->is_readable = true;
ps->is_writable = true;
ps->index = 0;
ps->size = TARGET_PAGE_SIZE * 8;
ps->size = E2K_DEFAULT_PS_SIZE;
ps->base = e2k_mmap(ps->size);
ps->base_tag = e2k_mmap(ps->size / 8);
}

View File

@ -25,6 +25,8 @@ void e2k_tcg_initialize(void);
#define MMU_USER_IDX 1
#define CPU_RESOLVING_TYPE TYPE_E2K_CPU
#define E2K_DEFAULT_PCS_SIZE (TARGET_PAGE_SIZE * 4)
#define E2K_DEFAULT_PS_SIZE (TARGET_PAGE_SIZE * 16)
#define E2K_TAG_SIZE 2 /* 2-bit tag for 32-bit value */
#define E2K_REG_LEN sizeof(uint64_t)