Hi Preet

> -----Original Message-----
> From: Preet Derasari via gem5-users <gem5-users@gem5.org>
> Sent: 24 July 2021 17:05
> To: gem5-users@gem5.org
> Cc: Preet Derasari <preetderas...@gmail.com>
> Subject: [gem5-users] How to set data breakpoints/watchpoints in FS/SE
> modes
>
> Hi!
>
> I am trying to figure out ways in which I can use gem5's pre-existing
> SimObjects to set data watchpoints/breakpoints. If there exist no SimObjects
> to do that I can also create my own but for that, I need to understand the
> concept of data watchpoints.

We do support Self-Hosted watchpoints and breakpoints in Arm [1]
Self hosted means there is no external debugger controlling the PE: the debug 
code is executed by the PE itself.

>
> Can anyone help me with either of these? For example, if there is an address
> that the simulated CPU is requesting the data for via the MemReq SimObject,
> I want to throw an exception when this happens and execute another piece
> of code. (basically something like the ARM DS-5 debugger functionality). Any
> help is much appreciated.

You could reuse the existing Self Hosted debug implementation. To configure 
your breakpoints/watchpoints you might want to run your program under GDB

>
>
>
>
> Thank you. Regards,
>
> Preet.

Kind Regards

Giacomo

[1]: https://github.com/gem5/gem5/blob/stable/src/arch/arm/self_debug.hh

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
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to