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)
302
302
303
303
static inline sbi_ret_t handle_sbi_ecall_RFENCE (hart_t * hart , int32_t fid )
304
304
{
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
+ */
306
311
uint64_t hart_mask , hart_mask_base ;
307
312
switch (fid ) {
308
313
case 0 :
@@ -622,6 +627,9 @@ static int semu_start(int argc, char **argv)
622
627
/* Emulate */
623
628
uint32_t peripheral_update_ctr = 0 ;
624
629
while (!emu .stopped ) {
630
+ /* TODO: Add support for multi-threaded system emulation after the
631
+ * RFENCE extension is completely implemented.
632
+ */
625
633
for (uint32_t i = 0 ; i < vm .n_hart ; i ++ ) {
626
634
if (peripheral_update_ctr -- == 0 ) {
627
635
peripheral_update_ctr = 64 ;
You can’t perform that action at this time.
0 commit comments