Add the syscall number as the second parameter for the trap fault. This could be improved and syscalls could be called from the trap's invoke method.
Add the syscall number as the second parameter for the trap fault. This could be improved and syscalls could be called from the trap's invoke method.

--HG--
extra : convert_revision : 127a3673a076110fb3605c0fbc93e8d7e9fec84b

zlfben/gem5,qizenguf/MLC-STT,samueldotj/TeeRISC-Simulator,cancro7/gem5,KuroeKurose/gem5,zlfben/gem5,qizenguf/MLC-STT,gedare/gem5,yb-kim/gemV,yb-kim/gemV,briancoutinho0905/2dsampling,joerocklin/gem5,cancro7/gem5,HwisooSo/gemV-update,aclifton/cpeg853-gem5,rallylee/gem5,powerjg/gem5-ci-test,briancoutinho0905/2dsampling,joerocklin/gem5,austinharris/gem5-riscv,SanchayanMaity/gem5,gedare/gem5,aclifton/cpeg853-gem5,sobercoder/gem5,gem5/gem5,samueldotj/TeeRISC-Simulator,rallylee/gem5,sobercoder/gem5,briancoutinho0905/2dsampling,rallylee/gem5,TUD-OS/gem5-dtu,rjschof/gem5,TUD-OS/gem5-dtu,TUD-OS/gem5-dtu,sobercoder/gem5,zlfben/gem5,zlfben/gem5,KuroeKurose/gem5,Weil0ng/gem5,markoshorro/gem5,qizenguf/MLC-STT,markoshorro/gem5,sobercoder/gem5,TUD-OS/gem5-dtu,cancro7/gem5,Weil0ng/gem5,briancoutinho0905/2dsampling,qizenguf/MLC-STT,gem5/gem5,Weil0ng/gem5,aclifton/cpeg853-gem5,yb-kim/gemV,KuroeKurose/gem5,aclifton/cpeg853-gem5,SanchayanMaity/gem5,sobercoder/gem5,kaiyuanl/gem5,qizenguf/MLC-STT,yb-kim/gemV,gem5/gem5,Weil0ng/gem5,kaiyuanl/gem5,rjschof/gem5,austinharris/gem5-riscv,cancro7/gem5,rjschof/gem5,sobercoder/gem5,powerjg/gem5-ci-test,briancoutinho0905/2dsampling,samueldotj/TeeRISC-Simulator,rallylee/gem5,qizenguf/MLC-STT,samueldotj/TeeRISC-Simulator,qizenguf/MLC-STT,aclifton/cpeg853-gem5,zlfben/gem5,joerocklin/gem5,HwisooSo/gemV-update,markoshorro/gem5,rjschof/gem5,samueldotj/TeeRISC-Simulator,SanchayanMaity/gem5,aclifton/cpeg853-gem5,KuroeKurose/gem5,powerjg/gem5-ci-test,HwisooSo/gemV-update,SanchayanMaity/gem5,Weil0ng/gem5,joerocklin/gem5,yb-kim/gemV,TUD-OS/gem5-dtu,gedare/gem5,austinharris/gem5-riscv,markoshorro/gem5,powerjg/gem5-ci-test,rallylee/gem5,cancro7/gem5,cancro7/gem5,KuroeKurose/gem5,gedare/gem5,gem5/gem5,kaiyuanl/gem5,SanchayanMaity/gem5,HwisooSo/gemV-update,yb-kim/gemV,rallylee/gem5,kaiyuanl/gem5,markoshorro/gem5,samueldotj/TeeRISC-Simulator,KuroeKurose/gem5,joerocklin/gem5,powerjg/gem5-ci-test,rjschof/gem5,yb-kim/gemV,gem5/gem5,gedare/gem5,kaiyuanl/gem5,sobercoder/gem5,zlfben/gem5,austinharris/gem5-riscv,powerjg/gem5-ci-test,HwisooSo/gemV-update,TUD-OS/gem5-dtu,SanchayanMaity/gem5,briancoutinho0905/2dsampling,HwisooSo/gemV-update,austinharris/gem5-riscv,powerjg/gem5-ci-test,KuroeKurose/gem5,Weil0ng/gem5,joerocklin/gem5,austinharris/gem5-riscv,rjschof/gem5,markoshorro/gem5,briancoutinho0905/2dsampling,joerocklin/gem5,yb-kim/gemV,kaiyuanl/gem5,kaiyuanl/gem5,rallylee/gem5,markoshorro/gem5,SanchayanMaity/gem5,samueldotj/TeeRISC-Simulator,aclifton/cpeg853-gem5,rjschof/gem5,TUD-OS/gem5-dtu,gem5/gem5,gedare/gem5,Weil0ng/gem5,zlfben/gem5,cancro7/gem5,joerocklin/gem5,gedare/gem5,gem5/gem5,HwisooSo/gemV-update,austinharris/gem5-riscv