Skip to content

Suggested improvements in text of spec #1062

Open
@rsnikhil

Description

Here are some suggestions to improve the text in:

Version 1.0.0-rc3, Revised 2024-05-15: Frozen
https://github.com/riscv/riscv-debug-spec/releases/download/1.0.0-rc3/riscv-debug-specification.pdf
  • Sec 1.2 Context: Should 'Zicsr' be included in this list?

  • Sec 3.7.1.3 Access Memory:
    "... with the exact same memory view and permissions as the selected hart has."

    But a hart often has two views into memory: Instruction view and
    Load/Store/AMO view, which may not be exactly in sync (needing
    FENCE.I).  Suggest that the text clarifies which view it refers to.
    
  • Sec 4.7 Halt:
    "2. prv and v are set to reflect the current privilege mode"

    Suggest change to:
    "2. prv and v are set to reflect the current privilege and virtualization mode"
    (This makes the language symmetric with 4.8,
    "2. The current privilege mode and virtualization mode are
    changed to that specified by prv and v.")

  • Apx B.2.6: The examples use the Program Buffer to read MSTATUS/F1
    into s0, then finally use an Abstract command to read s0.

    Why would one do this 2-step process, since abstract commands are
    cabable of reading MSTATUS/F1 directly?

    Also, these examples overwrite s0. Would it make more sense to use
    dscratch0? Would be good to clarify.

  • Apx B.2.8:
    "(depending on and other system configuration")
    Dodgy English?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions