Update mem5.c
Merge pull request #54 from momoye/patch-1

Update mem5.c