[gem5] Support option of timing or functional cache flush.