Hi,

On 15/03/2023 23:34, Kar, Anurag Arunkumar via gem5-users wrote:
Hi,

I’m trying to use Arm Pointer Authentication (Arm v8.3 PAC extension) with a 
cross compiled binary which has the PAC instructions with return address 
signing (I checked, the instructions are there).

I tried inserting some std::cout print statements in the ArmISA::auth function 
in pauth_helpers.cc. I’m just trying to see if it gets triggered and I didn’t 
see my print on the terminal. Is there a way for me to be sure PAuth is working 
as it should be before I start making modifications?


Are you running in SE or FS mode?

First of all I would check if my binary is executing correctly (does it work as 
intended?). Then you could run with


build/ARM/gem5.opt --debug-flags=Exec [...]


This will print the instruction trace to stdout; you can pipe it to a file and 
see if there's any PAC instruction being executed.


Kind Regards


Giacomo


Apologies if the question is basic.

Regards,
Anurag Kar



_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org>
To unsubscribe send an email to 
gem5-users-le...@gem5.org<mailto:gem5-users-le...@gem5.org>


IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to