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

riscv: rename sbadaddr to stval #345

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hal/riscv64/_interrupts.S
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ _interrupts_dispatch:

csrr t0, sstatus
csrr t1, sepc
csrr t2, sbadaddr
csrr t2, stval
csrr t3, scause

sd t0, 256(sp)
Expand Down
4 changes: 2 additions & 2 deletions hal/riscv64/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ typedef struct _exc_context_t {

u64 sstatus;
u64 sepc;
u64 sbadaddr;
u64 stval;
u64 scause;
} exc_context_t;

Expand Down Expand Up @@ -131,7 +131,7 @@ void hal_exceptionsDumpContext(char *buff, exc_context_t *ctx, int n)

i += hal_i2s(" sstatus : ", &buff[i], (u64)ctx->sstatus, 16, 1);
i += hal_i2s(" sepc : ", &buff[i], (u64)ctx->sepc, 16, 1);
i += hal_i2s(" sbaddaddr : ", &buff[i], (u64)ctx->sbadaddr, 16, 1);
i += hal_i2s(" stval : ", &buff[i], (u64)ctx->stval, 16, 1);
i += hal_i2s(" scause : ", &buff[i], (u64)ctx->scause, 16, 1);

buff[i++] = '\n';
Expand Down
Loading