From patchwork Fri Jun 24 09:53:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 70811 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp863873qgy; Fri, 24 Jun 2016 03:05:35 -0700 (PDT) X-Received: by 10.200.39.33 with SMTP id g30mr3502168qtg.16.1466762735945; Fri, 24 Jun 2016 03:05:35 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id u11si4358908qku.9.2016.06.24.03.05.35 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 24 Jun 2016 03:05:35 -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]:42295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGNzT-0005kK-5m for patch@linaro.org; Fri, 24 Jun 2016 06:05:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGNnt-0000jk-40 for qemu-devel@nongnu.org; Fri, 24 Jun 2016 05:53:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGNnp-0003Ju-Dz for qemu-devel@nongnu.org; Fri, 24 Jun 2016 05:53:37 -0400 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:32903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGNnp-0003JK-5z for qemu-devel@nongnu.org; Fri, 24 Jun 2016 05:53:33 -0400 Received: by mail-lf0-x22f.google.com with SMTP id f6so112303835lfg.0 for ; Fri, 24 Jun 2016 02:53:32 -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=aeR+4QRsqVrZFh0VGqu0XsW00lyYMdL4P5kLtRC6Rtcm7VGUSRKuZVKv5M5wJ5TliA mQZRF3g44HMriPdjabvUiIKZ6OGGIhwwVXNsxxxWxFbmPdT8wIkCfNFdlBQBj92JAoW3 qeaJVYVZVFmSchQJ2HYTeX0zXjIsxHBJZW670= 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=G0rOofn5OMAClFEUNK95FahYlccU+cKxvuwoxEYYp/RsAQ3c9++f4UClHIeGC/vu8I pPpOniV6dr0xFa+UhEBM8Tv1rwyQ4SdSgTFPkqjFzghbrtFArubRY0W5iw/L+gim9Est H2Ti/XGKghKNg9rcgWWvn3IJvrffk8V1dfNkhaCueFRaMPN7VgAsbj+EDGbtThZro+/d 0ykAFztu7H8mK2TDgWaS1deGUJJ8f/Cmhuxn7yrkf3bl4KRs6Q/T8WAkJN8b3Mx3Z+Tl 4ZIj15Y5cCAPesSYtbrvSflM+vIjFdzBrs71+h6gUhmk2PhmhTBhneaIMD/HWaJwV893 AsaQ== X-Gm-Message-State: ALyK8tI9dBJufSzhtjNk2XZKvGqEorgGARpI+N9vjkOR/KhvYH5lgFol9XOIETQsqqVYHlVD X-Received: by 10.25.31.77 with SMTP id f74mr1041361lff.215.1466762012308; Fri, 24 Jun 2016 02:53:32 -0700 (PDT) Received: from beaming.home (85-76-80-69-nat.elisa-mobile.fi. [85.76.80.69]) by smtp.gmail.com with ESMTPSA id o137sm798203lfe.2.2016.06.24.02.53.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jun 2016 02:53:31 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Fri, 24 Jun 2016 12:53:02 +0300 Message-Id: <5fd5cb246b7f923fdf548fbf7ef677faa39a628e.1466760944.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::22f Subject: [Qemu-devel] [PULL 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