Hi,
FEAT_PAuth should be enabled by default, unless you are using a really old version of gem5. May I suggest you to debug the instruction (or ArmISA::auth) with gdb to understand what is going on? autib should generate an exception if FEAT_PAuth is disabled (and shouldn't be treated as NOP) Kind Regards Giacomo On 06/04/2023 19:55, Kar, Anurag Arunkumar wrote: Posting a follow up to this: Do I need to enable PAuth in some way? Right now I see that the pointers don’t really have anything in their upper bits and almost feels like the AUT instructions are being treated as NOPs. I’m running with the IEW debug flag on with some added debug statements of my own. Here, I manually inserted the 0xf in the top byte of the register 182 but it causes the execution to have a page table fault and abort. [cid:part1.qJb1yqx7.35RiUdqu@arm.com] Regards, Anurag From: Giacomo Travaglini <giacomo.travagl...@arm.com><mailto:giacomo.travagl...@arm.com> Date: Thursday, March 16, 2023 at 5:15 AM To: The gem5 Users mailing list <gem5-users@gem5.org><mailto:gem5-users@gem5.org> Cc: Kar, Anurag Arunkumar <aka...@gatech.edu><mailto:aka...@gatech.edu> Subject: Re: [gem5-users] Checking if Arm PA works 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. 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