News for hackers. Stuff that matters.
Re:SiFive's P550 Microarchitecture by clamchowder on Monday January 27, 2025 @06:34PM (#42847109)
(author here) Just a 32 entry BTB is technically a possibility from microbenchmark results, but the EIC7700X datasheet straight up says:

"a branch prediction unit that is composed of a 32-entry Branch Target Buffer (BTB), a 9.1 KiB-entry Branch History Table (BHT), a 16-entry Return Address Stack (RAS), 512-entry Indirect Jump Target Predictor (IJTP), and a 16-entry Return Instruction Predictor"

Re:SiFive's P550 Microarchitecture by phire on Monday January 27, 2025 @08:01PM (#42847721)
Ah, that makes so much more sense.

So it does have a 2nd level BTB, it's just that it's labeled as IJTP and is potentially only used by indirect branches.

Re:SiFive's P550 Microarchitecture by clamchowder on Tuesday January 28, 2025 @08:15AM (#42851933)
No, that's not a second level BTB in that regular direct branches don't seem to use it. It's only for predicting indirect branches.