forked from sysprog21/rv32emu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jit: Correct EBB sequence (sysprog21#175)
This commit attempts to correct EBB sequence correctly. When a basic block is replaced by the cache, the EBB sequence recorded in other BBs is not updated, potentially leading to outdated EBB sequence. This situation can result in the replaced BB being created in a different memory location. To address this issue, the verification of the EBB sequence for being outdated or not is added, and it is updated accordingly each time the EBB sequence is used. Additionally, to handle cases where certain non-branch instructions can serve as the end of a BB when it is filled, a modification is made to insn_is_unconditional_branch, changing it to insn_is_conditional_branch. This change enables the BB to be extended only when its end is a conditional branch instruction. Through these adjustments, the commit ensures accurate handling of the EBB sequence in the JIT code. Close sysprog21#173
- Loading branch information
Yen-Fu Chen
committed
Aug 14, 2023
1 parent
34b7057
commit 7218652
Showing
5 changed files
with
140 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.