t-crest / patmos

Patmos is a time-predictable VLIW processor, and the processor for the T-CREST project
http://patmos.compute.dtu.dk
BSD 2-Clause "Simplified" License
134 stars 72 forks source link

Handbook: Calling convention regarding SRB,SRO,SXB,SXO #124

Closed Emoun closed 1 year ago

Emoun commented 2 years ago

The handbook says:

  • The return information registers s7-s10 (srb, sro, sxb, sxo) are callee-saved saved registers.

This doesn't make sense to me, as a call would overwrite the registers with the callee's return information, making the callee unable to save the caller's return information. After talking with @schoeberl, this seems to be a mistake, so I propose we reword it to caller-saved instead.

Emoun commented 1 year ago

Fixed in 615a98811a7250fe4d7c0e6d317d0febe47b819b