From 492a35b017da4faeeace0d4cb62b667b770ed5e1 Mon Sep 17 00:00:00 2001 From: Yen-Fu Chen Date: Mon, 13 May 2024 23:55:50 +0800 Subject: [PATCH] Correctly update the information of hotspot 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. --- src/jit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jit.c b/src/jit.c index 841f6b256..de075783b 100644 --- a/src/jit.c +++ b/src/jit.c @@ -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; } }