Skip to content

Commit

Permalink
Fixed frequency switch code
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-jonsson committed Nov 6, 2023
1 parent ef07f18 commit 0820c4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions front/sdl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,12 @@ static int emu_loop(void *ptr) {
SDL_AtomicSet(&running, 0);
else
printf("step error: %s", vxt_error_str(res.err));
} else if (res.halted) {
SDL_Delay(0); // Yield CPU time to other processes.
}
num_cycles += res.cycles;
} else {
frequency = vxtu_ppi_turbo_enabled(ppi_device) ? cpu_frequency : ((double)VXT_DEFAULT_FREQUENCY / 1000000.0);
}
frequency = vxtu_ppi_turbo_enabled(ppi_device) ? cpu_frequency : ((double)VXT_DEFAULT_FREQUENCY / 1000000.0);
);

for (;;) {
Expand Down

0 comments on commit 0820c4e

Please sign in to comment.