Dear all I am trying to have a one to one mapping of stack variables in a function to a set of physical addresses in ARM, gem5, SE mode. For achieving this, I need to know the size and starting virtual address of stack in a function.
>From my understanding, the following instruction at the function header has the stack size: sub sp, sp, #size Q1. If this is correct, I would like to know how to intercept this instruction and obtain the virtual address and size of the stack size that needs to be allocated. Additionally, in some cases, there are some are random padding instructions like: sub sp, sp, #4 below this instruction. Q2. What is the rationale behind these padding instructions? Any help really appreciated. Thanks a lot in advance. Best regards V Vanchinathan
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
