Skip to content

Commit

Permalink
Re-remove G_NORETURN from cpu_loop
Browse files Browse the repository at this point in the history
  • Loading branch information
rmalmain committed Apr 24, 2024
1 parent 61a70ab commit 428a0f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions linux-user/aarch64/cpu_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,12 @@ void cpu_loop(CPUARMState *env)
abi_long ret;

//// --- Begin LibAFL code ---

libafl_exit_signal_vm_start();

//// --- End LibAFL code ---

for (;;) {

//// --- Begin LibAFL code ---

if (libafl_exit_asap()) return;

//// --- End LibAFL code ---

cpu_exec_start(cs);
Expand All @@ -104,10 +99,8 @@ void cpu_loop(CPUARMState *env)
switch (trapnr) {

//// --- Begin LibAFL code ---

case EXCP_LIBAFL_EXIT:
return;

//// --- End LibAFL code ---

case EXCP_SWI:
Expand Down
2 changes: 1 addition & 1 deletion linux-user/user-internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ abi_long do_syscall(CPUArchState *cpu_env, int num, abi_long arg1,
abi_long arg5, abi_long arg6, abi_long arg7,
abi_long arg8);
extern __thread CPUState *thread_cpu;
G_NORETURN void cpu_loop(CPUArchState *env);
/* G_NORETURN */ void cpu_loop(CPUArchState *env);
abi_long get_errno(abi_long ret);
const char *target_strerror(int err);
int get_osversion(void);
Expand Down

0 comments on commit 428a0f0

Please sign in to comment.