summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2019-03-30 15:05:48 +0300
committerAnup Patel <anup@brainfault.org>2019-04-01 07:40:38 +0300
commitcfff0126ab80d8c53e55f6eaae1a59e08159160b (patch)
tree97a446f19526be500f89e168165207a76d958adc /lib
parentf9cfe301c92aede87e46069e66e250d4039e413e (diff)
downloadopensbi-cfff0126ab80d8c53e55f6eaae1a59e08159160b.tar.xz
lib: Remove unused mepc arg from load_xyz() and store_xyz() functions
This patch removes unused mepc arg from load_xyz() and store_xyz() unpriviledge access functions. Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/sbi_ipi.c2
-rw-r--r--lib/sbi_misaligned_ldst.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/sbi_ipi.c b/lib/sbi_ipi.c
index 3b89d5d..609de0d 100644
--- a/lib/sbi_ipi.c
+++ b/lib/sbi_ipi.c
@@ -58,7 +58,7 @@ int sbi_ipi_send_many(struct sbi_scratch *scratch,
u32 hartid = sbi_current_hartid();
if (pmask)
- mask &= load_ulong(pmask, csr_read(CSR_MEPC));
+ mask &= load_ulong(pmask);
/* send IPIs to every other hart on the set */
for (i = 0, m = mask; m; i++, m >>= 1)
diff --git a/lib/sbi_misaligned_ldst.c b/lib/sbi_misaligned_ldst.c
index 8ab01c1..f1df3f0 100644
--- a/lib/sbi_misaligned_ldst.c
+++ b/lib/sbi_misaligned_ldst.c
@@ -93,7 +93,7 @@ int sbi_misaligned_load_handler(u32 hartid, ulong mcause,
val.data_u64 = 0;
for (i = 0; i < len; i++)
- val.data_bytes[i] = load_u8((void *)(addr + i), regs->mepc);
+ val.data_bytes[i] = load_u8((void *)(addr + i));
if (!fp)
SET_RD(insn, regs, val.data_ulong << shift >> shift);
@@ -169,7 +169,7 @@ int sbi_misaligned_store_handler(u32 hartid, ulong mcause,
return SBI_EILL;
for (i = 0; i < len; i++)
- store_u8((void *)(addr + i), val.data_bytes[i], regs->mepc);
+ store_u8((void *)(addr + i), val.data_bytes[i]);
regs->mepc += INSN_LEN(insn);