I would assume you have to be root to do this branch predictor stuff. If you're root, why do you need Spectre? If you're attacking some trusted execution thing, then I assume you wouldn't be able to do the branch predictor stuff.
See for example
https://developer.arm.com/documentation/ddi0595/2020-12/AArc...
but good luck 1. having a cpu with it (can't wait for arm laptops and needing caniuse.org for my assembly code), and 2. figuring out how to use it