@@ -671,34 +671,34 @@ static int riscv32_breakwatch_clear(target_s *const target, breakwatch_s *const
671671}
672672
673673/*
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+ */
677677static inline bool riscv32_target_csr_write (target_s * target , const uint16_t reg , uint32_t val )
678678{
679679 riscv_hart_s * const hart = riscv_hart_struct (target );
680680 return riscv_csr_write (hart , reg , & val );
681681}
682682
683683/*
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+ */
687687static inline bool riscv32_target_csr_read (target_s * target , const uint16_t reg , uint32_t * val )
688688{
689689 riscv_hart_s * const hart = riscv_hart_struct (target );
690690 return riscv_csr_read (hart , reg , val );
691691}
692692
693693/*
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+ */
702702bool riscv32_run_stub (
703703 target_s * target , uint32_t loadaddr , uint32_t param1 , uint32_t param2 , uint32_t param3 , uint32_t param4 )
704704{
0 commit comments