mem: Check return value of checkFunctional in SimpleMemory
mem: Check return value of checkFunctional in SimpleMemory

Simple fix to ensure we only iterate until we are done.
(transplanted from 0a810481d5110293e1909e5b752add8a0245ec70)

andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin