Microarchitectural Support for Security and Reliability: An Embedded Systems Perspective