Message ID | 1707130200-559404-3-git-send-email-ganboing@gmail.com |
---|---|
State | Changes Requested |
Headers | show |
Series | Allow platform to handle load/store faults | expand |
On Mon, Feb 5, 2024 at 4:20 PM Bo Gan <ganboing@gmail.com> wrote: > > Signed-off-by: Bo Gan <ganboing@gmail.com> > --- > include/sbi/{sbi_misaligned_ldst.h => sbi_trap_ldst.h} | 0 > lib/sbi/sbi_trap.c | 2 +- > lib/sbi/sbi_trap_ldst.c | 2 +- > 3 files changed, 2 insertions(+), 2 deletions(-) > rename include/sbi/{sbi_misaligned_ldst.h => sbi_trap_ldst.h} (100%) You need to rename __SBI_MISALIGNED_LDST_H__ in sbi_misaligned_ldst.h to __SBI_TRAP_LDST_H__ Otherwise, it looks good to me. Reviewed-by: Anup Patel <anup@brainfault.org> Regards, Anup > > diff --git a/include/sbi/sbi_misaligned_ldst.h b/include/sbi/sbi_trap_ldst.h > similarity index 100% > rename from include/sbi/sbi_misaligned_ldst.h > rename to include/sbi/sbi_trap_ldst.h > diff --git a/lib/sbi/sbi_trap.c b/lib/sbi/sbi_trap.c > index dbf307c..145db4b 100644 > --- a/lib/sbi/sbi_trap.c > +++ b/lib/sbi/sbi_trap.c > @@ -17,7 +17,7 @@ > #include <sbi/sbi_illegal_insn.h> > #include <sbi/sbi_ipi.h> > #include <sbi/sbi_irqchip.h> > -#include <sbi/sbi_misaligned_ldst.h> > +#include <sbi/sbi_trap_ldst.h> > #include <sbi/sbi_pmu.h> > #include <sbi/sbi_scratch.h> > #include <sbi/sbi_timer.h> > diff --git a/lib/sbi/sbi_trap_ldst.c b/lib/sbi/sbi_trap_ldst.c > index aa512de..be9a394 100644 > --- a/lib/sbi/sbi_trap_ldst.c > +++ b/lib/sbi/sbi_trap_ldst.c > @@ -11,7 +11,7 @@ > #include <sbi/riscv_encoding.h> > #include <sbi/riscv_fp.h> > #include <sbi/sbi_error.h> > -#include <sbi/sbi_misaligned_ldst.h> > +#include <sbi/sbi_trap_ldst.h> > #include <sbi/sbi_pmu.h> > #include <sbi/sbi_trap.h> > #include <sbi/sbi_unpriv.h> > -- > 2.7.4 >
diff --git a/include/sbi/sbi_misaligned_ldst.h b/include/sbi/sbi_trap_ldst.h similarity index 100% rename from include/sbi/sbi_misaligned_ldst.h rename to include/sbi/sbi_trap_ldst.h diff --git a/lib/sbi/sbi_trap.c b/lib/sbi/sbi_trap.c index dbf307c..145db4b 100644 --- a/lib/sbi/sbi_trap.c +++ b/lib/sbi/sbi_trap.c @@ -17,7 +17,7 @@ #include <sbi/sbi_illegal_insn.h> #include <sbi/sbi_ipi.h> #include <sbi/sbi_irqchip.h> -#include <sbi/sbi_misaligned_ldst.h> +#include <sbi/sbi_trap_ldst.h> #include <sbi/sbi_pmu.h> #include <sbi/sbi_scratch.h> #include <sbi/sbi_timer.h> diff --git a/lib/sbi/sbi_trap_ldst.c b/lib/sbi/sbi_trap_ldst.c index aa512de..be9a394 100644 --- a/lib/sbi/sbi_trap_ldst.c +++ b/lib/sbi/sbi_trap_ldst.c @@ -11,7 +11,7 @@ #include <sbi/riscv_encoding.h> #include <sbi/riscv_fp.h> #include <sbi/sbi_error.h> -#include <sbi/sbi_misaligned_ldst.h> +#include <sbi/sbi_trap_ldst.h> #include <sbi/sbi_pmu.h> #include <sbi/sbi_trap.h> #include <sbi/sbi_unpriv.h>
Signed-off-by: Bo Gan <ganboing@gmail.com> --- include/sbi/{sbi_misaligned_ldst.h => sbi_trap_ldst.h} | 0 lib/sbi/sbi_trap.c | 2 +- lib/sbi/sbi_trap_ldst.c | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename include/sbi/{sbi_misaligned_ldst.h => sbi_trap_ldst.h} (100%)