Implementing MTX model in Gem5 Simulator