Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mi3LQ-00009E-Dh for mharc-qemu-trivial@gnu.org; Tue, 02 Nov 2021 19:37:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mi3LO-0008Uc-I4 for qemu-trivial@nongnu.org; Tue, 02 Nov 2021 19:37:30 -0400 Received: from mail-qv1-xf2b.google.com ([2607:f8b0:4864:20::f2b]:34778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mi3LK-0002vr-Dq for qemu-trivial@nongnu.org; Tue, 02 Nov 2021 19:37:30 -0400 Received: by mail-qv1-xf2b.google.com with SMTP id i13so743871qvm.1 for ; Tue, 02 Nov 2021 16:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=higN3TA3bhO5AwRXdd7DWxRGHM5dSrbbhXXx+VgKykg=; b=xnmcPtRAj8g5wJxu/M9skbLQ+iCUTfiWceTTPEmYukW2GpYZPy89IjEqKI0u/btwfW VgWCgne3gJTl4pJgOV0FrqbuzL5fsfSgM8u7I/jPIxdhlLbANrhLSwiNrO+/50dOeMYs lUvsIJ2KsC3W9Ym1NAgTx5n12H4rTWm4A0JjIVORricM9gR2a1EH24di/atJ3E9UNUK9 tqByRKf+QUTsSlSaN/+u78VlZ0DX9H0+7YlYQU4glQVAn1wc1xatdknuFYC7RdjhxabK LsXPZM37Y9QchjumymcYw4fobYaHypCY9r1fI29tRdD8f5RxWSqo/auGixkv1Lr8Zbj7 zuLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=higN3TA3bhO5AwRXdd7DWxRGHM5dSrbbhXXx+VgKykg=; b=osD71rQeC6KTRQ3+AjYFUDbudiOk0ESDlzBhEKoZPUA4kR7aYIx2r7Ky83VsebBPYv yKU6STi7I1W4rKymcmxJ+jBTWbXGHmwSA9qKdvDSTkuBNPU56C/0ycQAELDpTgWjObeU fXqz5wm574LNy6rNTEmiga6L6/tpULlSuy3TZNYUBB+yqSFNPKJRJl4oKMS9PWXXlpVZ 3xaPiQB9Eht98tgnjtLIKBVa6CaAaoz1EL40JregeC0o2jGugamjxSaysxb+1f643n+/ F2RlBnoJIfX2Ew/3ZXpp5Vtho0u/yy1UV4/qRf81k0EehPSCUyY8HKwruwODpnxbtyNn Ik/Q== X-Gm-Message-State: AOAM530X+ry2fVnoGCn/s2mTVWcM4iarxqGjMxvcy432nozMi/TTWIEl GvlGuidzOwCCZ5aUf/TPqWy7OQ== X-Google-Smtp-Source: ABdhPJxyq/qwAQempDIoKWy1ardqK5hn8jzbfJPXqJo/TNn3IP3wHBRNzh58rmYSxFhl0VCs0eY56A== X-Received: by 2002:ac8:5f88:: with SMTP id j8mr40963848qta.275.1635896245506; Tue, 02 Nov 2021 16:37:25 -0700 (PDT) Received: from [172.20.81.179] (rrcs-172-254-253-57.nyc.biz.rr.com. [172.254.253.57]) by smtp.gmail.com with ESMTPSA id v7sm311961qkd.41.2021.11.02.16.37.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Nov 2021 16:37:24 -0700 (PDT) Subject: Re: [PATCH v2 01/30] bsd-user: Add stubs for new signal routines To: Warner Losh , qemu-devel@nongnu.org Cc: Michael Tokarev , qemu-trivial@nongnu.org, Philippe Mathieu-Daude , Kyle Evans , Laurent Vivier References: <20211102225248.52999-1-imp@bsdimp.com> <20211102225248.52999-2-imp@bsdimp.com> From: Richard Henderson Message-ID: <3a4d91dc-5726-ff89-a837-faefdff45a92@linaro.org> Date: Tue, 2 Nov 2021 19:37:23 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211102225248.52999-2-imp@bsdimp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::f2b; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf2b.google.com X-Spam_score_int: -45 X-Spam_score: -4.6 X-Spam_bar: ---- X-Spam_report: (-4.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-2.549, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Nov 2021 23:37:30 -0000 On 11/2/21 6:52 PM, Warner Losh wrote: > Until the signal support is merged from the bsd-user fork, we need stubs > for cpu_loop_exit_sigsegv and cpu_loop_exit_sigbus to link. These call > abort after logging a message. Since singals aren't supported here > yet, this is sufficient. > > Signed-off-by: Warner Losh > --- > bsd-user/signal.c | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/bsd-user/signal.c b/bsd-user/signal.c > index 0c1093deb1..05b277c642 100644 > --- a/bsd-user/signal.c > +++ b/bsd-user/signal.c > @@ -20,6 +20,11 @@ > #include "qemu/osdep.h" > #include "qemu.h" > > +/* > + * Stubbed out routines until we merge signal support from bsd-user > + * fork. > + */ > + > /* > * Queue a signal so that it will be send to the virtual CPU as soon as > * possible. > @@ -36,3 +41,19 @@ void signal_init(void) > void process_pending_signals(CPUArchState *cpu_env) > { > } > + > +void cpu_loop_exit_sigsegv(CPUState *cpu, target_ulong addr, > + MMUAccessType access_type, bool maperr, uintptr_t ra) > +{ > + qemu_log_mask(LOG_UNIMP, "No signal support for SIGSEGV\n"); > + /* unreachable */ > + abort(); > +} > + > +void cpu_loop_exit_sigbus(CPUState *cpu, target_ulong addr, > + MMUAccessType access_type, uintptr_t ra) > +{ > + qemu_log_mask(LOG_UNIMP, "No signal support for SIGBUS\n"); > + /* unreachable */ > + abort(); > +} > I'm going to apply this directly to master as a build fix. Sorry about that. r~