sail-riscv icon indicating copy to clipboard operation
sail-riscv copied to clipboard

Add callback for pt walk

Open Arielfoever opened this issue 1 month ago • 8 comments

fix #1356

Arielfoever avatar Nov 01 '25 17:11 Arielfoever

Test Results

2 115 tests  ±0   2 115 ✅ ±0   20m 50s ⏱️ +10s     1 suites ±0       0 💤 ±0      1 files   ±0       0 ❌ ±0 

Results for commit 7591875b. ± Comparison against base commit d7b474b9.

:recycle: This comment has been updated with latest results.

github-actions[bot] avatar Nov 02 '25 14:11 github-actions[bot]

Looks pretty good. I think we probably don't want to convert things to strings though. Now that we use a generated header maybe we can use the actual generated types? zPrivilege and so on.

Timmmm avatar Nov 03 '25 13:11 Timmmm

I think we need to take into meeting due to divergence from #1372

Arielfoever avatar Nov 03 '25 15:11 Arielfoever

We will add an option ptw-trace.

Arielfoever avatar Nov 03 '25 15:11 Arielfoever

We will add an option ptw-trace.

It should be --trace-ptw to be consistent with the other trace related flags.

jordancarlin avatar Nov 03 '25 15:11 jordancarlin

We will add an option ptw-trace.

It should be --trace-ptw to be consistent with the other trace related flags.

I really hate add a lot of options for trace. we should have some modern log system that support subscript.

Go https://github.com/riscv/sail-riscv/issues/1204

Arielfoever avatar Nov 03 '25 15:11 Arielfoever

Looks pretty good. I think we probably don't want to convert things to strings though. Now that we use a generated header maybe we can use the actual generated types? zPrivilege and so on.

A little off topic - do we have a comparison table between C and sail and sail-riscv? like int in sail for sail-int for C.

Arielfoever avatar Nov 03 '25 15:11 Arielfoever

do we have a comparison table between C and sail and sail-riscv? like int in sail for sail-int for C.

There are three options:

  • fbits (alias for uint64_t) - when the type's size is statically known.
  • sbits - when it's not statically known but is statically known to be <= 64 bits.
  • lbits - if neither of the above applies.

Timmmm avatar Nov 03 '25 16:11 Timmmm