qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/4] RISC-V: Modularize common match conditions for trigger
@ 2024-06-04  4:14 Alvin Chang via
  2024-06-04  4:14 ` [PATCH v5 1/4] target/riscv: Add functions for common matching conditions of trigger Alvin Chang via
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Alvin Chang via @ 2024-06-04  4:14 UTC (permalink / raw)
  To: qemu-riscv, qemu-devel
  Cc: alistair.francis, bin.meng, liwei1518, dbarboza, zhiwei_liu,
	Alvin Chang

According to RISC-V Debug specification ratified version 0.13 [1]
(also applied to version 1.0 [2] but it has not been ratified yet), the
enabled privilege levels of the trigger is common match conditions for
all the types of the trigger.

This series modularize the code for checking the privilege levels of
type 2/3/6 triggers by implementing functions trigger_common_match()
and trigger_priv_match().

Additional match conditions, such as CSR tcontrol and textra, can be
further implemented into trigger_common_match() in the future.

[1]: https://github.com/riscv/riscv-debug-spec/releases/tag/task_group_vote
[2]: https://github.com/riscv/riscv-debug-spec/releases/tag/1.0.0-rc1-asciidoc

Changes from v4:
- Rebasing on riscv-to-apply.next 

Changes from v3:
- Change this series to target Debug Spec. version 0.13

Changes from v2:
- Explicitly mention the targeting version of RISC-V Debug Spec.

Changes from v1:
- Fix typo
- Add commit description for changing behavior of looping the triggers
  when we check type 2 triggers.

Alvin Chang (4):
  target/riscv: Add functions for common matching conditions of trigger
  target/riscv: Apply modularized matching conditions for breakpoint
  target/riscv: Apply modularized matching conditions for watchpoint
  target/riscv: Apply modularized matching conditions for icount trigger

 target/riscv/debug.c | 129 ++++++++++++++++++++++++++++---------------
 1 file changed, 85 insertions(+), 44 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-06-26  9:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-04  4:14 [PATCH v5 0/4] RISC-V: Modularize common match conditions for trigger Alvin Chang via
2024-06-04  4:14 ` [PATCH v5 1/4] target/riscv: Add functions for common matching conditions of trigger Alvin Chang via
2024-06-26  6:20   ` Alistair Francis
2024-06-26  7:26     ` Alvin Che-Chia Chang(張哲嘉)
2024-06-26  9:32       ` Alistair Francis
2024-06-04  4:14 ` [PATCH v5 2/4] target/riscv: Apply modularized matching conditions for breakpoint Alvin Chang via
2024-06-04  4:14 ` [PATCH v5 3/4] target/riscv: Apply modularized matching conditions for watchpoint Alvin Chang via
2024-06-04  4:14 ` [PATCH v5 4/4] target/riscv: Apply modularized matching conditions for icount trigger Alvin Chang via
2024-06-04  6:42 ` [PATCH v5 0/4] RISC-V: Modularize common match conditions for trigger Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).