qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] target/riscv: set tval for triggered watchpoints


From: Richard Henderson
Subject: Re: [PATCH] target/riscv: set tval for triggered watchpoints
Date: Mon, 30 Jan 2023 09:10:51 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 1/30/23 00:07, Sergey Matyukevich wrote:
From: Sergey Matyukevich<sergey.matyukevich@syntacore.com>

According to priviledged spec, if [sm]tval is written with a nonzero
value when a breakpoint exception occurs, then [sm]tval will contain
the faulting virtual address. Set tval to hit address when breakpoint
exception is triggered by hardware watchpoint.

Signed-off-by: Sergey Matyukevich<sergey.matyukevich@syntacore.com>
---
  target/riscv/cpu_helper.c | 3 +++
  target/riscv/debug.c      | 1 +
  2 files changed, 4 insertions(+)

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

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]