Skip to content

Commit

Permalink
Correctly update the information of hotspot
Browse files Browse the repository at this point in the history
In the original version, we didn't update the hotspot state of the block
that had been translated before, resulting in the block not being able
to be executed through T1C.
  • Loading branch information
qwe661234 committed May 13, 2024
1 parent 7d13e82 commit 492a35b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1964,6 +1964,7 @@ void jit_translate(riscv_t *rv, block_t *block)
for (int i = 0; i < state->n_blocks; i++) {
if (block->pc_start == state->offset_map[i].pc) {
block->offset = state->offset_map[i].offset;
block->hot = true;
return;
}
}
Expand Down

0 comments on commit 492a35b

Please sign in to comment.