manaleg fixes for dynarmic common context

This commit is contained in:
lizzie 2026-05-07 19:29:37 +00:00
parent 557b61e214
commit d4297a1106
2 changed files with 5 additions and 1 deletions

View file

@ -121,6 +121,9 @@
# elif defined(__DragonFly__)
# define CTX_RIP (mctx.mc_rip)
# define CTX_RSP (mctx.mc_rsp)
# elif defined(__managarm__)
# define CTX_RIP (mctx.__pollution(gregs)[REG_RIP])
# define CTX_RSP (mctx.__pollution(gregs)[REG_RSP])
# else
# error "unknown platform"
# endif