patmos: stack cache with test case
Merge branch 'sc_new'