Update mem5.c

完善源码分析
Merge pull request #121 from momoye/patch-4

Update mem5.c