Skip to content

Commit 8171414

Browse files
committed
Place 'TODO' comments to indicate the next step
1 parent 1d4acbd commit 8171414

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

main.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,12 @@ static inline sbi_ret_t handle_sbi_ecall_IPI(hart_t *hart, int32_t fid)
302302

303303
static 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;

0 commit comments

Comments
 (0)