Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,11 +1122,12 @@ void rv_step_debug(void *arg)
rv_check_interrupt(rv);
#endif

retranslate:
/* fetch the next instruction */
rv_insn_t ir;

retranslate:
memset(&ir, 0, sizeof(rv_insn_t));

/* fetch the next instruction */
uint32_t insn = rv->io.mem_ifetch(rv, rv->PC);
#if RV32_HAS(SYSTEM)
if (!insn && need_retranslate) {
Expand Down
Loading