mips: Fix register target for SP setting in libproc

Copy-paste-o from r233042
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D21188
This commit is contained in:
Justin Hibbits 2019-08-08 16:37:32 +00:00
parent cca7237972
commit e6bb926199

View File

@ -138,7 +138,7 @@ proc_regset(struct proc_handle *phdl, proc_reg_t reg, unsigned long regvalue)
#elif defined(__i386__)
regs.r_esp = regvalue;
#elif defined(__mips__)
regs.r_regs[PC] = regvalue;
regs.r_regs[SP] = regvalue;
#elif defined(__powerpc__)
regs.fixreg[1] = regvalue;
#elif defined(__riscv)