Re: [PATCH v3 4/6] target/riscv: Add support to record CTR entries.

2024-11-05 Thread Richard Henderson
On 11/4/24 21:51, Rajnesh Kanwal wrote: +/* + * Indirect calls + * - jalr x1, rs where rs != x5; + * - jalr x5, rs where rs != x1; + * - c.jalr rs1 where rs1 != x5; + * + * Indirect jumps + * - jalr x0, rs where rs != x1 and rs != x5; + * - c.jr rs1 where rs1 != x1 and rs1 != x5. + * + * Returns

[PATCH v3 4/6] target/riscv: Add support to record CTR entries.

2024-11-04 Thread Rajnesh Kanwal
This commit adds logic to records CTR entries of different types and adds required hooks in TCG and interrupt/Exception logic to record events. This commit also adds support to invoke freeze CTR logic for breakpoint exceptions and counter overflow interrupts. Signed-off-by: Rajnesh Kanwal --- t