[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/4] RISC-V: Modularize common match conditions for trigger
From: |
Alvin Chang |
Subject: |
[PATCH v2 0/4] RISC-V: Modularize common match conditions for trigger |
Date: |
Fri, 23 Feb 2024 10:21:15 +0800 |
According to RISC-V Debug specification, 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.
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 | 124 +++++++++++++++++++++++++++++--------------
1 file changed, 83 insertions(+), 41 deletions(-)
--
2.34.1
- [PATCH v2 0/4] RISC-V: Modularize common match conditions for trigger,
Alvin Chang <=
- [PATCH v2 1/4] target/riscv: Add functions for common matching conditions of trigger, Alvin Chang, 2024/02/22
- [PATCH v2 2/4] target/riscv: Apply modularized matching conditions for breakpoint, Alvin Chang, 2024/02/22
- [PATCH v2 3/4] target/riscv: Apply modularized matching conditions for watchpoint, Alvin Chang, 2024/02/22
- [PATCH v2 4/4] target/riscv: Apply modularized matching conditions for icount trigger, Alvin Chang, 2024/02/22
- Re: [PATCH v2 0/4] RISC-V: Modularize common match conditions for trigger, Alistair Francis, 2024/02/25