Predicting program phases and defending against side-channel attacks using hardware performance counters
New cache designs for thwarting software cache-based side channel attacks