STTRAM functionality in GEM5