|
|
Subscribe / Log in / New account

Support for Intel's LASS

Support for Intel's LASS

Posted Jan 15, 2023 12:11 UTC (Sun) by ballombe (subscriber, #9523)
In reply to: Support for Intel's LASS by matthias
Parent article: Support for Intel's LASS

Your example require b to be in the cache, yes ?
Then it computes *b, detect the fault, but still continue with load ?


to post comments

Support for Intel's LASS

Posted Jan 15, 2023 13:06 UTC (Sun) by matthias (subscriber, #94967) [Link]

Yes, b and *b should both be in the cache (the pointer and the data pointed to). Then misprediction is only detected after *b is evaluated and the load of c or d is already on its way. If *b would not be in the cache, probably a would arrive before *b and the inner if would never be evaluated. But *b would be loaded and one can just repeat the whole thing with some different a that is not yet in the cache.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds