Skip to content

Commit

Permalink
Updates to Smsdedbg per issue 26 (revised)
Browse files Browse the repository at this point in the history
Signed-off-by: Ravi Sahita <ravi@rivosinc.com>
  • Loading branch information
rsahita committed Mar 20, 2024
1 parent 64f72dc commit 033d2b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions chapter8.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,18 @@ The `metrcen` is an enable control for external trace for the `M-mode` driven by
an external trace module and is expected to be established by the RoT (following
RISC-V security model recommendations SR_GEN_007 and 012). When privilege is
`M-mode`, the `metrcen` gates the `halted` signal (from the hart) into the hart
trace encoder. Per the specification <<R24>>, this side-band `halted` signal
being asserted, prevents the hart from generating any trace output.
trace encoder. Per the Efficient trace specification cite:[Etrc], this side-band
`halted` signal being asserted, stops subsequent tracing from the hart. On this
signal being deasserted, the encode can start tracing again.

[NOTE]
====
Implementation of the `halted` side-band signal is required to support external
tracing with supervisor domains
====

`Smsdetrc` specifies the following behavior for tracing with supervisor domains:

When `metrcen` is 0:
`halted` is asserted on:

Expand Down
5 changes: 5 additions & 0 deletions example.bib
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ @electronic{ExtDbg
title = {RISC-V Debug Specification},
url = {https://github.com/riscv/riscv-debug-spec}
}

@electronic{ETrc,
title = {RISC-V Efficient Trace for RISC-V, v2.0.2, March 5, 2024},
url = {https://github.com/riscv-non-isa/riscv-trace-spec/releases/download/v2.0.2/riscv-trace-spec-asciidoc.pdf}
}

0 comments on commit 033d2b7

Please sign in to comment.