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

2023-01-30 Thread Sergey Matyukevich
Hi Bin, > > > 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. > > > > > >

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

2023-01-30 Thread Bin Meng
On Tue, Jan 31, 2023 at 8:59 AM Alistair Francis wrote: > > On Mon, Jan 30, 2023 at 8:08 PM Sergey Matyukevich wrote: > > > > From: Sergey Matyukevich > > > > According to priviledged spec, if [sm]tval is written with a nonzero > > value when a breakpoint exception occurs, then [sm]tval will con

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

2023-01-30 Thread Alistair Francis
On Mon, Jan 30, 2023 at 8:08 PM Sergey Matyukevich wrote: > > From: Sergey Matyukevich > > 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 break

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

2023-01-30 Thread Alistair Francis
On Mon, Jan 30, 2023 at 8:08 PM Sergey Matyukevich wrote: > > From: Sergey Matyukevich > > 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 break

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

2023-01-30 Thread Richard Henderson
On 1/30/23 00:07, Sergey Matyukevich wrote: From: Sergey Matyukevich 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 trigge

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

2023-01-30 Thread Sergey Matyukevich
From: Sergey Matyukevich 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: S