Skip to content

Hardcoded CSR address in DUMP macro is error-prone #230

@colluca

Description

@colluca

When adding custom CSRs, it is very likely to forget to adapt this. We should probably allocate one or a few dump CSRs at fixed addresses, rather than using all unmapped CSRs as dump CSRs.

#define DUMP(val) ({ asm volatile("csrw 0x7C3, %0" ::"rK"(val)); })

Metadata

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