SWSC helper: reg reservation based on attributes

don't reserve in all naked functions but based on the function attributes
patmos_preserve_tmp and patmos_preserve_ret.