Skip to content

Commit

Permalink
fix netbsd arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Feb 19, 2024
1 parent 2b883bb commit 3bda249
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/linux/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ static void context_segfault(host_context_t* hostctx, void* segfault_ctx)
#elif defined(__FreeBSD__)
bicopy<ToSegfault>(hostctx->pc, MCTX(.mc_gpregs.gp_elr));
bicopy<ToSegfault>(hostctx->x0, MCTX(.mc_gpregs.gp_x[0]));
#elif defined(__NetBSD__)
bicopy<ToSegfault>(hostctx->pc, MCTX(.__gregs[_REG_ELR]));
bicopy<ToSegfault>(hostctx->x0, MCTX(.__gregs[_REG_X0]));
#else
bicopy<ToSegfault>(hostctx->pc, MCTX(.pc));
bicopy<ToSegfault>(hostctx->x0, MCTX(.regs[0]));
Expand Down

0 comments on commit 3bda249

Please sign in to comment.