This is a copy of McPAT 0.8 and marss2mcpat.py