From patchwork Tue Jun 28 19:12:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 71150 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1764201qgy; Tue, 28 Jun 2016 12:27:08 -0700 (PDT) X-Received: by 10.200.37.98 with SMTP id 31mr4895738qtn.82.1467142028477; Tue, 28 Jun 2016 12:27:08 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q190si5211948qke.136.2016.06.28.12.27.08 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 28 Jun 2016 12:27:08 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHyf5-0000SB-PS for patch@linaro.org; Tue, 28 Jun 2016 15:27:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHyRf-0001uH-7v for qemu-devel@nongnu.org; Tue, 28 Jun 2016 15:13:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHyRb-0006qw-SR for qemu-devel@nongnu.org; Tue, 28 Jun 2016 15:13:15 -0400 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:35493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHyRb-0006qW-Kb for qemu-devel@nongnu.org; Tue, 28 Jun 2016 15:13:11 -0400 Received: by mail-lf0-x22e.google.com with SMTP id l188so18147925lfe.2 for ; Tue, 28 Jun 2016 12:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KOT/wQvGS8eh0isyXbfKLEzkxTuXU+NGya5YMihMdog=; b=AUrztZ3o/3tMmZlBmX1c0nsBilpfPgx5hVRFrqHxfXWw0Iv4MqlPyy9HrcwqA3QhFX 703e7nAgvcpTktF77qC5Se19GjWDxf4QAVuZCU2QW0skBKxuSWbqoEidPyw6mz/GiRAs EE0tI6qNXxCwxblboM9UdO2MR9gaBSaVl9WzA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KOT/wQvGS8eh0isyXbfKLEzkxTuXU+NGya5YMihMdog=; b=GiNC+n6sJxfgPs1LT/aTaEAugBqmQBbIq2ntsAoSxO846kCkd2GT9rjA58I1rps69J bOeQp5ViciusWhW//WVgKpkmQiv45eT7cbLYP9UswkJwI623H7AfLJdNahqB8jm3UoN+ RoihgQGjd0f2/hD1flkvLhf/xywy8woqnPi5rM0DJcAyPQD42w43o4f5DoDfEYnqlnIQ d5YqQdAfCUhBYwHwL+/fihDbkU0BhxthjHNxOKe/cIDpt8MdcWXRy0iBNsr1LJcMsg3y VaRzP2XcU2x3RlAdR6XzaNco9wC/hrd8cUu68+2LyQ2TEn05hbfE1AUQkyzNmPdhgpvv 0tnw== X-Gm-Message-State: ALyK8tInmB2/D2K0livnteNQ9y5cQVqhj5mJIk624plFo11LWh0ITSeT0B3LS6nkqcvWMCZk X-Received: by 10.25.39.78 with SMTP id n75mr1842852lfn.91.1467141190878; Tue, 28 Jun 2016 12:13:10 -0700 (PDT) Received: from beaming.home (91-157-170-157.elisa-laajakaista.fi. [91.157.170.157]) by smtp.gmail.com with ESMTPSA id h10sm4262823ljh.38.2016.06.28.12.13.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jun 2016 12:13:10 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Tue, 28 Jun 2016 22:12:41 +0300 Message-Id: <4259a820d28ee5180f3f8e1f3eaaaa029a6b28a7.1467138806.git.riku.voipio@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22e Subject: [Qemu-devel] [PULL v2 07/24] user-exec: Delete now-unused hppa and m68k cpu_signal_handler() code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Peter Maydell Now that configure blocks attempts to build user-mode code on hppa and m68k hosts, we can delete the cpu_signal_handler() implementations for those architectures. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- user-exec.c | 60 ------------------------------------------------------------ 1 file changed, 60 deletions(-) -- 2.1.4 diff --git a/user-exec.c b/user-exec.c index 50e95a6..1e2449e 100644 --- a/user-exec.c +++ b/user-exec.c @@ -494,24 +494,6 @@ int cpu_signal_handler(int host_signum, void *pinfo, void *puc) is_write, &uc->uc_sigmask); } -#elif defined(__mc68000) - -int cpu_signal_handler(int host_signum, void *pinfo, - void *puc) -{ - siginfo_t *info = pinfo; - struct ucontext *uc = puc; - unsigned long pc; - int is_write; - - pc = uc->uc_mcontext.gregs[16]; - /* XXX: compute is_write */ - is_write = 0; - return handle_cpu_signal(pc, (unsigned long)info->si_addr, - is_write, - &uc->uc_sigmask); -} - #elif defined(__ia64) #ifndef __ISR_VALID @@ -616,48 +598,6 @@ int cpu_signal_handler(int host_signum, void *pinfo, is_write, &uc->uc_sigmask); } -#elif defined(__hppa__) - -int cpu_signal_handler(int host_signum, void *pinfo, - void *puc) -{ - siginfo_t *info = pinfo; - struct ucontext *uc = puc; - unsigned long pc = uc->uc_mcontext.sc_iaoq[0]; - uint32_t insn = *(uint32_t *)pc; - int is_write = 0; - - /* XXX: need kernel patch to get write flag faster. */ - switch (insn >> 26) { - case 0x1a: /* STW */ - case 0x19: /* STH */ - case 0x18: /* STB */ - case 0x1b: /* STWM */ - is_write = 1; - break; - - case 0x09: /* CSTWX, FSTWX, FSTWS */ - case 0x0b: /* CSTDX, FSTDX, FSTDS */ - /* Distinguish from coprocessor load ... */ - is_write = (insn >> 9) & 1; - break; - - case 0x03: - switch ((insn >> 6) & 15) { - case 0xa: /* STWS */ - case 0x9: /* STHS */ - case 0x8: /* STBS */ - case 0xe: /* STWAS */ - case 0xc: /* STBYS */ - is_write = 1; - } - break; - } - - return handle_cpu_signal(pc, (unsigned long)info->si_addr, - is_write, &uc->uc_sigmask); -} - #else #error host CPU specific signal handler needed