PUBLICATION: Reproducing spectre attack with gem5: How to do It right? © EURECOM. Personal use of this material is permitted. The definitive version of this paper was published in and is available at : Document