News for hackers. Stuff that matters.
Re:The legend of “x86 CPUs decode instructions into RISC for... by fooblaster on Sunday June 18, 2023 @02:11PM (#36382720)
I'm not sure how you could write something like this without considering something like the micro op cache, which is present in all modern x86 and some arm processors. The micro op cache on x86 is effectively is the only way an x86 processor can get full ipc performance, and that's because it contains pre decoded instructions. We don't know the formats here, but we can guarantee that they are fixed length instructions and that they have branch instructions annotated. Yeah sure, these instructions have more complicated semantics than true risc instructions, but they have the most important part - fixed length. This makes it possible for 8-10 of them to be dispatched to the backend per cycle. In my mind, this definitely is the "legend" manifested.
Re:The legend of “x86 CPUs decode instructions into RISC for... by jabl on Sunday June 18, 2023 @04:48PM (#36384293)
Do we know they are fixed length? They could e.g. use a table with offsets to instruction boundaries in the cache?
Re:The legend of “x86 CPUs decode instructions into RISC for... by gpderetta on Sunday June 18, 2023 @05:55PM (#36384918)
We know that they are over 100 bits (which is not very RISCy) and not fixed length as some constants cause the instructions to take more than one cache slots. IIRC they are also not necessarily load store.
Re:The legend of “x86 CPUs decode instructions into RISC for... by fooblaster on Monday June 19, 2023 @04:04AM (#36388496)
Any source on some of the details here? I'm interested to know more.
Re:The legend of “x86 CPUs decode instructions into RISC for... by gpderetta on Monday June 19, 2023 @05:20AM (#36388984)
Agner Fog optimization guides have some. Otherwise Intel own manuals.
Re:The legend of “x86 CPUs decode instructions into RISC for... by hovav on Monday June 19, 2023 @10:59AM (#36391820)
X. Ren et al., "I See Dead µops: Leaking Secrets via Intel/AMD Micro-Op Caches," in proc. ISCA 2021: https://cseweb.ucsd.edu/~tullsen/isca2021.pdf