diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-19 21:30:02 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-28 13:32:14 +0530 |
commit | fe37d7da29f67ae8ccc31f06e0f3e6c9a6b58054 (patch) | |
tree | edf5816ec411be7b554ce2bb9af5f17dc633b9a0 /lib/sbi/sbi_trap.c | |
parent | 5a7bd0c88d7455de46143ccd9c74a40162bd3611 (diff) |
lib: sbi_misaligned_ldst: Remove mcause, scratch and hartid parameters
We remove mcause, scratch and hartid parameters from various functions
for misaligned load/store handling because we can always get current
HART id and current scratch pointer using just one CSR access.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_trap.c')
-rw-r--r-- | lib/sbi/sbi_trap.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/sbi/sbi_trap.c b/lib/sbi/sbi_trap.c index 36702ca..b06b33f 100644 --- a/lib/sbi/sbi_trap.c +++ b/lib/sbi/sbi_trap.c @@ -247,15 +247,11 @@ void sbi_trap_handler(struct sbi_trap_regs *regs, msg = "illegal instruction handler failed"; break; case CAUSE_MISALIGNED_LOAD: - rc = sbi_misaligned_load_handler(hartid, mcause, mtval, - mtval2, mtinst, regs, - scratch); + rc = sbi_misaligned_load_handler(mtval, mtval2, mtinst, regs); msg = "misaligned load handler failed"; break; case CAUSE_MISALIGNED_STORE: - rc = sbi_misaligned_store_handler(hartid, mcause, mtval, - mtval2, mtinst, regs, - scratch); + rc = sbi_misaligned_store_handler(mtval, mtval2, mtinst, regs); msg = "misaligned store handler failed"; break; case CAUSE_SUPERVISOR_ECALL: |