gem5 simulator with modication