1 /* 2 * Emulation of BSD signals 3 * 4 * Copyright (c) 2003 - 2008 Fabrice Bellard 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #include "qemu/osdep.h" 21 #include "qemu.h" 22 23 /* 24 * Stubbed out routines until we merge signal support from bsd-user 25 * fork. 26 */ 27 28 /* 29 * Queue a signal so that it will be send to the virtual CPU as soon as 30 * possible. 31 */ 32 void queue_signal(CPUArchState *env, int sig, target_siginfo_t *info) 33 { 34 qemu_log_mask(LOG_UNIMP, "No signal queueing, dropping signal %d\n", sig); 35 } 36 37 void signal_init(void) 38 { 39 } 40 41 void process_pending_signals(CPUArchState *cpu_env) 42 { 43 } 44 45 void cpu_loop_exit_sigsegv(CPUState *cpu, target_ulong addr, 46 MMUAccessType access_type, bool maperr, uintptr_t ra) 47 { 48 qemu_log_mask(LOG_UNIMP, "No signal support for SIGSEGV\n"); 49 /* unreachable */ 50 abort(); 51 } 52 53 void cpu_loop_exit_sigbus(CPUState *cpu, target_ulong addr, 54 MMUAccessType access_type, uintptr_t ra) 55 { 56 qemu_log_mask(LOG_UNIMP, "No signal support for SIGBUS\n"); 57 /* unreachable */ 58 abort(); 59 } 60