[gem5] Count dirty pages on checkpointing.