jbush001 / NyuziProcessor

GPGPU microprocessor architecture
Apache License 2.0
1.97k stars 349 forks source link

syscall instruction should have a numeric parameter #146

Closed jbush001 closed 6 years ago

jbush001 commented 6 years ago

Encoding a syscall number that indicates which call is taken. Copy this into a control register.

Currently, the syscall number needs to be copied into a GPR, which doesn't work well with the normal calling convention (first parameter is in s0 instead of s1).

jbush001 commented 6 years ago

(accidentally put wrong bug number in commit).

Fixed in 4209ac27eb4c0056594fad654b34992d78e70527 Issue #145: syscall instruction needs parameter

this change breaks binary compatibility

syscall now has a parameter that is passed in a control register. Needed to renumber syscall opcode to fit in immediate instruction. A lot of these changes are side effects of changing the system call conventions in libos.