Searched hist:11806 (Results 1 - 1 of 1) sorted by relevance
/gem5/src/arch/riscv/ | ||
H A D | process.cc | diff 11806:ada5603bdb1c Fri Jan 27 16:05:00 EST 2017 Alec Roelke <ar4jc@virginia.edu> riscv: Fix crash when syscall argument reg index is too high By default, doSyscall gets the values of six registers to be used for system call arguments. RISC-V, by convention, only has four. Because RISC-V's implementation of these indices is as arrays of integers rather than as base indices plus offsets, trying to get the fifth argument register's value will cause a crash. This patch fixes that by returning 0 for any index higher than 3. Signed-off-by: Jason Lowe-Power <jason@lowepower.com> |
Completed in 6 milliseconds