Hi all,

I am trying to keep track of the size of the stack and heap while executing a 
binary, and at the moment, I can get the address of the stack pointer using 
this line of code 
cpu->readArchIntReg(ArmISA::INTREG_SP ,tid). 
I am also trying to read the frame pointer (FP), but I am having trouble 
getting the address for it
because it always prints zero as its address, and I am using Register 11 for 
the FP (cpu->readArchIntReg(ArmISA::INTREG_R11) ).
Am I doing something wrong, or is there a better way to get the stack size?  
and also the heap size with its addresses?

I saw that someone asked a similar question a while back on this forum, but it 
was not fully answered. 
Here is the link https://www.mail-archive.com/gem5-users@gem5.org/msg04154.html

I need help! 

Ange
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to