GPR array is now global. Changed memory writeback call to access_mem().