vx_start.S: Swizzle stack space

Striding stack space for threads by power-of-two risks possibilities of bank
conflicts or cache aliasing problems.  Add an extra offset of 4 bytes to avoid
this.
This commit is contained in:
Hansung Kim
2024-03-29 12:24:55 -07:00
parent fa2b6e2ad0
commit b0c1f77388

View File

@@ -102,6 +102,8 @@ init_regs:
#endif
csrr t0, VX_CSR_MHARTID
sll t1, t0, STACK_LOG2_SIZE
sll t2, t0, 2
add t1, t1, t2
sub sp, sp, t1
# set thread pointer register