Branch predictor flush missing signal. Bug? #3135
Unanswered
gm-openchip
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I can't find any info on why the
flush_bp_isignal, input toi_frontendin cva6.sv is tied to0.cva6/core/cva6.sv
Line 682 in 89986df
It seems to always have been like this since the first commit.
I checked in my emulation run and the missing flush is triggering some bad prediction during kernel boot. In particular, it seems that while in M-MODE (sbi calls) bp still contains "dirty addresses" from previous Linux Kernel operations (S-Mode).
Since in M-Mode MMU translation is disabled, from time to time, a virtual address passes through and causes
FE_INSTR_ACCESS_FAULT.This seems not be causing any issue, but just curious if it's a bug or a wanted feature.
PS:
flush_ctrl_bp(https://github.com/openhwgroup/cva6/blob/89986dfe867dada9752eee19a4ed4a9d274484a6/core/cva6.sv#L1300C31-L1300C44) is correctly generating flushes, but is not tied to anything..Beta Was this translation helpful? Give feedback.
All reactions