@@ -671,34 +671,34 @@ static int riscv32_breakwatch_clear(target_s *const target, breakwatch_s *const
671
671
}
672
672
673
673
/*
674
- Small helper function to translate target to hart and simplify parameters
675
- We assume it is 32 bits
676
- */
674
+ * Small helper function to translate target to hart and simplify parameters
675
+ * We assume it is 32 bits
676
+ */
677
677
static inline bool riscv32_target_csr_write (target_s * target , const uint16_t reg , uint32_t val )
678
678
{
679
679
riscv_hart_s * const hart = riscv_hart_struct (target );
680
680
return riscv_csr_write (hart , reg , & val );
681
681
}
682
682
683
683
/*
684
- Small helper function to translate target to hart and simplify parameters
685
- We assume it is 32 bits
686
- */
684
+ * Small helper function to translate target to hart and simplify parameters
685
+ * We assume it is 32 bits
686
+ */
687
687
static inline bool riscv32_target_csr_read (target_s * target , const uint16_t reg , uint32_t * val )
688
688
{
689
689
riscv_hart_s * const hart = riscv_hart_struct (target );
690
690
return riscv_csr_read (hart , reg , val );
691
691
}
692
692
693
693
/*
694
- Execute code on the target with the signature void function(a,b,c,d)
695
- - codexec is the address the code to tun is located at
696
- - param1/2/3/4 will end up as the 4 parameters of the stub function
697
-
698
- The flashstub must not use the stack at all.
699
- It returns true on success, false on error
700
- There is a built-in timeout of 10 seconds
701
- */
694
+ * Execute code on the target with the signature void function(a,b,c,d)
695
+ * - codexec is the address the code to tun is located at
696
+ * - param1/2/3/4 will end up as the 4 parameters of the stub function
697
+ *
698
+ * The flashstub must not use the stack at all.
699
+ * It returns true on success, false on error
700
+ * There is a built-in timeout of 10 seconds
701
+ */
702
702
bool riscv32_run_stub (
703
703
target_s * target , uint32_t loadaddr , uint32_t param1 , uint32_t param2 , uint32_t param3 , uint32_t param4 )
704
704
{
0 commit comments