File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,12 @@ static inline sbi_ret_t handle_sbi_ecall_IPI(hart_t *hart, int32_t fid)
302302
303303static inline sbi_ret_t handle_sbi_ecall_RFENCE (hart_t * hart , int32_t fid )
304304{
305- /* TODO: RFENCE SBI extension */
305+ /* TODO: Since the current implementation sequentially emulates
306+ * multi-core execution, the implementation of RFENCE extension is not
307+ * complete, for example, FENCE.I is currently ignored. To support
308+ * multi-threaded system emulation, RFENCE extension has to be implemented
309+ * completely.
310+ */
306311 uint64_t hart_mask , hart_mask_base ;
307312 switch (fid ) {
308313 case 0 :
@@ -622,6 +627,9 @@ static int semu_start(int argc, char **argv)
622627 /* Emulate */
623628 uint32_t peripheral_update_ctr = 0 ;
624629 while (!emu .stopped ) {
630+ /* TODO: Add support for multi-threaded system emulation after the
631+ * RFENCE extension is completely implemented.
632+ */
625633 for (uint32_t i = 0 ; i < vm .n_hart ; i ++ ) {
626634 if (peripheral_update_ctr -- == 0 ) {
627635 peripheral_update_ctr = 64 ;
You can’t perform that action at this time.
0 commit comments