hw: Implement stack cache write-back.