Message ID | 20190510032710.23910-8-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp1824673ilr; Thu, 9 May 2019 20:34:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBrMc4rfjpnL/i8/5dnikhDN6E7AV4bNsHPlHulMeoNiUhIrAEM77qs2wKmc66Py/GcJJq X-Received: by 2002:a5d:674f:: with SMTP id l15mr5440788wrw.41.1557459273108; Thu, 09 May 2019 20:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557459273; cv=none; d=google.com; s=arc-20160816; b=ZeCrJWL07yxGpm4gqbHUyVX3kMyEAFYTGCBAE0GP+9RPNDOIQbxY0SqvlWzzGpjhQz 5Od9kkjnHNww4nvNVMQz4ZOOus3IROukLETfQsk8VyXAEtVNTZtVujKjbd8s2RKMymzo lWtvscM8Cod9LV3SN2knTZ71zWDGnUGPindBrmOSqJO8a3ZLDjRRM7FpMTIDo00qx64o FXzSkJL1gWlh1j3Rst0HcH4XoyrPx01W2RbajkxyqrPtf9F7frwW0VpdW1xC632KYkwI umqkCcBxLY1woaU/IlfNkg/xuN+Zz4aynMeuGU+qxtCs3IhP+CaETkj3a9hd9PkXQBxw 8tuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=rcqQ5gZYdNhdYCOJ+I4S1mR1Qz6k+Xi4o1Wh52SYzeo=; b=rXRc9mp98ey9rsU95ZIAH87RCoOq0iBVTf9HCS4QuByOu8ZzqV0/NCRHGbYMrw5MOy ACxFlRCCycqTzzynTTpOlX0SkcSQA+Gpr1Yn9uBwW9pWt0pGHkuQGCD0pPk4dfxBHNEh BfzLut4EvwwrMqtI/dyWnnNnEv3g1LQT2FVaX1xGFKEHyEwmDJZCtpQKlIUSJkMSM9MQ hQAF41N0qLAhhLjsbMspU5YJKyp8wRegDIwCvZbYVa1SG2/napmLR6j8eSyykq+rPg8F i0TAHArU7CF+j1MDkc2Gr5bijsg7kOL4LUGlapmynwh7g3E7pPa+QknFFhtjySNdQExi r0qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ej0UQFe4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f5si2779976wmb.122.2019.05.09.20.34.31 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 09 May 2019 20:34:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ej0UQFe4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:36194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1hOwIp-0000KD-4c for patch@linaro.org; Thu, 09 May 2019 23:34:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hOwBw-00031X-1V for qemu-devel@nongnu.org; Thu, 09 May 2019 23:27:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hOwBv-0001T7-90 for qemu-devel@nongnu.org; Thu, 09 May 2019 23:27:24 -0400 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:34885) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hOwBv-0001Sw-3g for qemu-devel@nongnu.org; Thu, 09 May 2019 23:27:23 -0400 Received: by mail-pf1-x441.google.com with SMTP id t87so2423003pfa.2 for <qemu-devel@nongnu.org>; Thu, 09 May 2019 20:27:23 -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=rcqQ5gZYdNhdYCOJ+I4S1mR1Qz6k+Xi4o1Wh52SYzeo=; b=ej0UQFe4T0IG8uCDEXGBKcgijTK5WJKqQYejGlybedav4ebsRY+aX/qjh8fu5SBdvp PfLyPTBTBk/34NeOPt70DCH5+5vl9xRVvtFox+XhVzl0IPjGzrTJSvEH0Z70Lzx9/YbO yDzdsaPMa4ZMiI+KiZK3/sN4ghV5qXD669tjbfGrzDDjw2w7/D1rmdwvMumVa7jq9HGH h91vAGxPZbQJlq1ZImU/oh2wMjyv60HI33I9WYUXPzs6N7mHHzncZ9GedjfyZ5WdAwc0 zQ82TBEds158PmuEuTEWcjLqFcZiAImCT6rHf0j2AjAbwlK4xrQmY1Av0adXTsFUEvry vUMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rcqQ5gZYdNhdYCOJ+I4S1mR1Qz6k+Xi4o1Wh52SYzeo=; b=V/wKb9dRmXD+s5NtLM5ye5kS865h/Ylf/X34r/y4NGorSJRmGoDHXMjarXpWO80Zgu tthCWXPyXytinNs2amBRmm79uJirNPIa/6Z0c1ILy5t7burUHTcGvrUC0xgJgJJEZd1H 9AudL7l4wRH9OOXxdmCsikXtLqVuztK1dvR4S/iS3sZQyFshx/NOBJ1E4aCuiFXxYuuC eGN4EUiG+Wt7DKdC1CYFpKEwz5ujHTvjPVysEYQi8qbzewZm4LWMogFHK82Yy0Xv+GRC 8rOnG2tcdSxNchZhZpnvjGLrRTcoYhcwc6AgcBldpweJnYziBnxQZ93Mx5OP7XErGrNQ EcFA== X-Gm-Message-State: APjAAAXGyZesn3WF6/N8humBMEqz2t9a4Km2xhlUMcKseha1ePekvS7j +MWJUNjvqUPkU+Rsifh4/sQaay1GZn8= X-Received: by 2002:aa7:98c6:: with SMTP id e6mr10647385pfm.191.1557458841783; Thu, 09 May 2019 20:27:21 -0700 (PDT) Received: from localhost.localdomain (97-113-13-231.tukw.qwest.net. [97.113.13.231]) by smtp.gmail.com with ESMTPSA id t26sm6259695pgk.62.2019.05.09.20.27.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 20:27:21 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Thu, 9 May 2019 20:27:09 -0700 Message-Id: <20190510032710.23910-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190510032710.23910-1-richard.henderson@linaro.org> References: <20190510032710.23910-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::441 Subject: [Qemu-devel] [PATCH v2 7/8] linux-user/sparc: Flush register windows before clone X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
linux-user sparc fixes
|
expand
|
diff --git a/linux-user/sparc/cpu_loop.c b/linux-user/sparc/cpu_loop.c index 9e357229c0..ff04f67847 100644 --- a/linux-user/sparc/cpu_loop.c +++ b/linux-user/sparc/cpu_loop.c @@ -169,6 +169,9 @@ void cpu_loop (CPUSPARCState *env) case 0x110: case 0x16d: #endif + if (env->gregs[1] == TARGET_NR_clone) { + flush_windows(env); + } ret = do_syscall (env, env->gregs[1], env->regwptr[0], env->regwptr[1], env->regwptr[2], env->regwptr[3],
As seen as the very first instruction of sys_clone in the kernel. Ideally this would be done in or before cpu_copy, and not with a separate explicit test vs the syscall number, but this is a more minimal solution. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- linux-user/sparc/cpu_loop.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1