Change WFI behavior : halt simulation

master
vhaudiquet 1 year ago
parent 13f7f21b49
commit 9e895e9032
  1. 3
      src/cpu/rv32cpu.c

@ -525,7 +525,8 @@ static void cpu_execute(rv32_cpu_t* cpu, instruction_t* instruction)
fprintf(stderr, "SFENCE.VMA: Guest kernel must think we have an MMU. We have none.\n");
break;
case FUNC7_WFI:
fprintf(stderr, "WFI: Guest kernel must think we have interrupts. We have none.\n");
fprintf(stderr, "WFI: Guest kernel must think we have interrupts. We have none. Halting simulation.\n");
cpu->sim_ticks_left = 1;
break;
default:
fprintf(stderr, "FATAL: Unknown IMM for ECALL/EBREAK instruction while executing (IMM=0x%x)\n", instruction->immediate);

Loading…
Cancel
Save