Modified code of SimpleScalar Tool