LATX: reduce indirect jump lookup overhead - #447
Draft
luzeng87 wants to merge 6 commits into
Draft
Conversation
luzeng87
marked this pull request as draft
September 3, 2026 03:06
luzeng87
force-pushed
the
x86_64-jump-cache-capacity
branch
2 times, most recently
from
September 3, 2026 06:39
2261edd to
a039bd3
Compare
Contributor
Author
|
Added |
Signed-off-by: Lu Zeng <luzeng87@gmail.com>
Signed-off-by: Lu Zeng <luzeng87@gmail.com>
Signed-off-by: Lu Zeng <luzeng87@gmail.com>
Signed-off-by: Lu Zeng <luzeng87@gmail.com>
Signed-off-by: Lu Zeng <luzeng87@gmail.com>
Signed-off-by: Lu Zeng <luzeng87@gmail.com>
luzeng87
force-pushed
the
x86_64-jump-cache-capacity
branch
from
September 3, 2026 11:49
c04868c to
308c8e8
Compare
This was referenced Sep 3, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Correctness
The secondary cache stores
TranslationBlock *, not only a guest PC and code pointer. A hit must matchpc,flags, andcflags; an invalidated TB therefore cannot match. Multiple TB variants at the same guest PC remain independently addressable.The current TB pointer is passed in
a7only after a FastTB miss. This avoids clobbering the LoongArch return-address register and leaves the primary FastTB hit path unchanged.An empty slot or one complete probe cycle returns to the regular dispatcher and QHT lookup. Tombstones preserve probe chains and are reused by later insertions.
Validation
master: passedlat-pr-fast: 25/25 passed.aot2filesThis PR remains a draft pending review, CI, and final performance regression testing.