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

CSRW Instruction error during compilation using PULP-RISC-V toolchain #34

Open
reinaldoasf opened this issue Oct 14, 2021 · 0 comments
Open

Comments

@reinaldoasf
Copy link

Hello! I'm having an issue when I try to compile an OS using the PULP-RISC-V toolchain. During the process, I've reached this Error: Instruction csrw requires absolute expression.
The mentioned function is the following:

static inline void rv32gc_satp_write(rv32gc_word_t val)
{
asm volatile(
"csrw satp, %0;"
:
: "r" (val)
);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant