jupiter icon indicating copy to clipboard operation
jupiter copied to clipboard

a0 vs a7 for system calls

Open TheThirdOne opened this issue 3 years ago • 1 comments

Jupiter uses a0 for the system call number. Most other simulators/kernels use a7 for the system call number. Notably, spike with pk, rv8, qemu for userspace, RARS, and RIPES all use a7. Venus would be the notable simulator that uses a0.

Would you be interested in changing to use a7 instead of a0? I would be willing to make a PR, but wanted to get a "go ahead" before I start.

TheThirdOne avatar Jul 24 '20 05:07 TheThirdOne

Yes absolutely, in the beginning of the project I thought that register a0 would be a good choice for system calls because we used to use Venus in classroom. If you could make a PR with that change, go ahead totally agree with the change.

andrescv avatar Jul 25 '20 18:07 andrescv