On 8/2/24 18:34, Ajeet Singh wrote:
From: Mark Corbin<mark.cor...@embecsom.com>

Added the 'get_mcontext' function to extract and populate
the RISC-V machine context from the CPU state.
This function is used to gather the current state of the
general-purpose registers and store it in a 'target_mcontext_'
structure.

Signed-off-by: Mark Corbin<mark.cor...@embecsom.com>
Signed-off-by: Ajeet Singh<itac...@freebsd.org>
Signed-off-by: Warner Losh<i...@bsdimp.com>
Co-authored-by: Warner Losh<i...@bsdimp.com>
---
  bsd-user/riscv/signal.c | 53 +++++++++++++++++++++++++++++++++++++++++
  1 file changed, 53 insertions(+)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to