From: Sergey Matyukevich <geomatsi@gmail.com>
To: opensbi@lists.infradead.org
Subject: [PATCH RFC v2 2/2] lib: sbi: add support for debug triggers
Date: Mon, 5 Dec 2022 23:34:37 +0300 [thread overview]
Message-ID: <Y45V3fAIOc9jNGaG@curiosity> (raw)
In-Reply-To: <57086abe77447357d6f33cc92f713e2c08860c0b.camel@126.com>
> > RISC-V Debug specification includes Sdtrig ISA extension.
> > This extension describes Trigger Module. Triggers can cause
> > a breakpoint exception, entry into Debug Mode, or a trace
> > action without having to execute a special instruction. For
> > native debugging triggers can be used to implement hardware
> > breakpoints and watchpoints.
> >
> > Software support for triggers consists of the following
> > major components:
> > - U-mode: gdb
> > - S-mode: hardware breakpoints framework in Linux kernel
> > - M-mode: SBI firmware code to handle triggers
> >
> > SBI Debug Trigger extension proposal has been posted by
> > Anup Patel to lists.riscv.org tech-debug mailing list:
> > https://lists.riscv.org/g/tech-debug/topic/92375492
> >
> > This patch provides initial implementation of SBI Debug
> > Trigger Extension in OpenSBI library based on the
> > suggested extension proposal.
> >
> > Initial implementation has the following limitations:
> > - supported triggers: mcontrol, mcontrol6
> > - no support for chained triggers
> > - only build test for RV32
> >
> Missing Signed-off-by
Thanks for catching, will fix.
> Compilation preprocessing too much. It is recommended to process register
> fields by defining some masks, and via INSERT_FIELD and EXTRACT_FIELD.
Indeed, current bitfield/union code looks awkward. I'll try to make it
more comprehensible in the next revision. BTW thanks for mentioning
INSERT/EXTRACT - I missed them when looking for something suitable
bitops header.
Regards,
Sergey
next prev parent reply other threads:[~2022-12-05 20:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-03 21:39 [PATCH RFC v2 0/2] lib: sbi: add support for debug triggers Sergey Matyukevich
2022-12-03 21:39 ` [PATCH RFC v2 1/2] include: sbi: endianness conversion macros Sergey Matyukevich
2022-12-03 21:39 ` [PATCH RFC v2 2/2] lib: sbi: add support for debug triggers Sergey Matyukevich
2022-12-04 11:56 ` Xiang W
2022-12-05 20:34 ` Sergey Matyukevich [this message]
2022-12-08 12:49 ` Himanshu Chauhan
2022-12-10 20:42 ` Sergey Matyukevich
2022-12-10 16:54 ` Xiang W
2022-12-10 19:15 ` Sergey Matyukevich
2022-12-11 1:40 ` Xiang W
2022-12-13 19:43 ` Sergey Matyukevich
2022-12-03 21:59 ` [PATCH RFC v2 0/2] " Sergey Matyukevich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y45V3fAIOc9jNGaG@curiosity \
--to=geomatsi@gmail.com \
--cc=opensbi@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.