Architecting emerging memory technologies for energy-efficient computing in modern processors