Change WFI behavior : halt simulation
This commit is contained in:
parent
13f7f21b49
commit
9e895e9032
@ -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…
Reference in New Issue
Block a user