Triggers on AMO instructions

57 views
Skip to first unread message

Joe Rahmeh

unread,
Mar 13, 2019, 3:46:20 PM3/13/19
to RISC-V Debug Group
For the purpose of this discussion, if an address trigger has both the ld and st bit set, I am considering it to be a load-address trigger.

For AMO instructions, what happens if multiple triggers match the load/store parts of the instruction?  In particular:

1. If a load-address trigger matches an AMO instruction (timing=before) and a store-data trigger (timing=before) matches as well.  Should the store-data trigger trip? We think that we should not be loading the data in this case and consequently the store-address trigger cannot trip.

2. If a load-address trigger matches an AMO instruction (timing=before) and a store-address trigger (timing=before) matches as well.  Should the store-data trigger trip?  We would prefer a no answer.  Is that legal?

3. If a load-address trigger matches an AMO instruction (timing=before) but there is an exception with the load part of the instruction, then would a matching store-address trigger trip?  We would prefer a no answer.  Is that legal?

Tim Newsome

unread,
Mar 15, 2019, 4:12:06 PM3/15/19
to Joe Rahmeh, RISC-V Debug Group
These are some serious corner cases. :-)

I agree with your interpretation, although the spec doesn't say much on this matter. (It doesn't even say what has to happen on simple load/store instructions, although it's clear what the intent is.) I'm happy to clarify the spec if you can propose some concrete changes that make this more clear.

Tim

--
You received this message because you are subscribed to the Google Groups "RISC-V Debug Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debug+un...@groups.riscv.org.
To post to this group, send email to de...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/debug/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/debug/61ebcba6-07a3-48f3-957a-55c21dc43a7c%40groups.riscv.org.
Reply all
Reply to author
Forward
0 new messages