We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef1cd9a + b92a965 commit c43dd6eCopy full SHA for c43dd6e
linux-user/mips/cpu_loop.c
@@ -84,6 +84,18 @@ void cpu_loop(CPUMIPSState *env)
84
85
switch(trapnr) {
86
case EXCP_SYSCALL:
87
+ if (
88
+ persistent_exits &&
89
+ (
90
+ env->active_tc.gpr[2] == TARGET_NR_exit_group ||
91
+ // uclibc may use the following signal instead of
92
+ // exit_group:
93
+ env->active_tc.gpr[2] == TARGET_NR_exit
94
+ )
95
+ ) {
96
+ env->active_tc.PC = afl_persistent_addr;
97
+ continue;
98
+ }
99
env->active_tc.PC += 4;
100
# ifdef TARGET_ABI_MIPSO32
101
syscall_num = env->active_tc.gpr[2] - 4000;
0 commit comments