Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

target/riscv: define register printers #892

Merged
merged 1 commit into from
Sep 28, 2023

Commits on Sep 22, 2023

  1. target/riscv: define register printers

    `riscv_debug_reg_to_s()` can be used to decode register value.  If the
    pointer to buffer is `NULL` it does not print anything, just returns the
    length of the string.
    
    The format is:
    `<register_value> { <field_name>=<field_value_name or field_value>, ..., }`
    
    e.g:
    
    `0x400382 { version=2, ... ndmresetpending=false, }`
    
    `0x321009 { regno=0x1009, ... cmdtype=0, }`
    
    Change-Id: I63733d8d36385d89ca15de1a43139134bc488c4f
    Signed-off-by: Evgeniy Naydanov <[email protected]>
    en-sc committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    43ebdd4 View commit details
    Browse the repository at this point in the history