about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-11-26 19:02:31 +0000
committerTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-11-26 19:02:31 +0000
commit416e37e8d142b4616dc65e3447db531c34e1ab0b (patch)
treedd0c9f7774c794e5cf6b9c1b1e86a030b6ff4bb5
parentc2d148ae047b5b502a9845bc7b0d65be5bc07c43 (diff)
downloadfocaccia-416e37e8d142b4616dc65e3447db531c34e1ab0b.tar.gz
focaccia-416e37e8d142b4616dc65e3447db531c34e1ab0b.zip
Implement futex emulation support
-rw-r--r--src/focaccia/qemu/x86.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/focaccia/qemu/x86.py b/src/focaccia/qemu/x86.py
index bf95492..360ea59 100644
--- a/src/focaccia/qemu/x86.py
+++ b/src/focaccia/qemu/x86.py
@@ -90,6 +90,7 @@ emulated_system_calls = {
     129: SyscallInfo('rt_sigqueueinfo', patchup_address_registers=['rdx']),
     130: SyscallInfo('rt_sigsuspend'),
     200: SyscallInfo('tkill'),
+    202: SyscallInfo('futex', patchup_address_registers=['rdi', 'r8']), 
     213: SyscallInfo('epoll_create'),
     219: SyscallInfo('restart_syscall'),
     232: SyscallInfo('epoll_wait', patchup_address_registers=['rsi']),