manaleg fixes for dynarmic common context

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

View file

@ -168,7 +168,8 @@ if (PLATFORM_PS4)
--extra-libs="${FFmpeg_CROSS_COMPILE_LIBS}"
)
elseif (PLATFORM_MANAGARM)
# Required for proper stuff
# Required for proper stuff, otherwise truncf and cosf won't get detected
list(APPEND FFmpeg_CROSS_COMPILE_LIBS -lm)
list(APPEND FFmpeg_CROSS_COMPILE_FLAGS
--disable-pthreads
--extra-libs="${FFmpeg_CROSS_COMPILE_LIBS}"

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