From patchwork Sun May 19 20:19:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 164477 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp4767637ili; Sun, 19 May 2019 13:21:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWF1Sfl25ytOF8DqY8jPp213ykhTObTwUaryApD9husnZQH07ZQQdtp7lYLCmW8dIDb4sm X-Received: by 2002:a50:fd0a:: with SMTP id i10mr70758214eds.117.1558297273781; Sun, 19 May 2019 13:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558297273; cv=none; d=google.com; s=arc-20160816; b=bH/16+AJkK2w45A8soOrH81hwyiUkqdQwmD1jpYGHLEaVKhZ56+kjwGif/iEFOo+fD MjRNjI8JTrq0fDM4bOnXagq1yPVj+3WL+P4ShhIVmDP2PJhSRmgMHTWrG90BRPjgWCTQ Q9/++28X2Nv7gxfWTOTDQjYTuTUKM7QBHwCwdxh9OfBGSTEHQ2teOEpRWWtRMJ4h6nGS +0jE4wpPsegDyBSohHvsBtop+zVRSRn7IGqkT1if805Rk/hvRaGrolvti4EXNDMCK4zS UEQjw2PYLDBQ9xXIyXInpflOdXpSpxuSoy2yk/avucYOFekO4mQmmXojTt+jyEmS8OjI evzQ== 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=T2aejSpup/jdLylt16k4iHZTGZjrzCHoXu3LKyQVTCY=; b=a4MF3bbsUhKqM9GUWJPpCK5ENLVHWigwIMUwl/mqmbcKOePOjBb7voKKk3ToTFHcwq gn071my3VG7HDVm+xAKQ3D3ClsNLiYp2kTMswdO5eM5PvfRJllDLmw3GbWUMKYzxAbJm KXj9ZWGuTZxQssGQGKqs1C1doiFwJw39YBg4NFgRere1KrS9ZKfBAywsIc7pcMg6tsa/ kuRvK0df/F29nJdW2PSNwlLqTwfrSlZTLSLTp8pLAzjmq1CpNPnEVQ2JBzSZGsFyZECO KW+iFMTqtEsV6mqfcycKg8Ecysz+e4AaqwFqok01autoXYcVXFsZ+z78x2p6k1x+gWfU pcWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=KjKTKbRg; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x20si4681450edm.69.2019.05.19.13.21.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 19 May 2019 13:21:13 -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=KjKTKbRg; 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]:52859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSSIy-0006AI-Jc for patch@linaro.org; Sun, 19 May 2019 16:21:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSSHr-0005Qd-Oa for qemu-devel@nongnu.org; Sun, 19 May 2019 16:20:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSSHq-0007N3-PE for qemu-devel@nongnu.org; Sun, 19 May 2019 16:20:03 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:37484) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSSHq-0007M0-Im for qemu-devel@nongnu.org; Sun, 19 May 2019 16:20:02 -0400 Received: by mail-pf1-x443.google.com with SMTP id g3so6161750pfi.4 for ; Sun, 19 May 2019 13:20:02 -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=T2aejSpup/jdLylt16k4iHZTGZjrzCHoXu3LKyQVTCY=; b=KjKTKbRgASqmgttgBFfUtzWbxlKpxm4MQDNPIJ2R22Ov7bs5vnerAN3YmRIwvDAddG bqHPJCoJcRe6hph8jCaQ5Km5rvWJjBPblqVikX9jU1XZEpt4YNodn+qTYNG8SG1fEwPJ nJ+33oLOrFA5TGEeoU6q9PYAE2jg7BSo/LR6gUEHlTEocQ8EyP7c13P4AgIPrEShjxA4 bMJjRWJ1Ipe11hGcVUujGtsgleqr3ZNY/EmKeDUGep6ph6P29VLDsOLIWkedi0gC+ZS6 3yIFcketU2hD2bVYdhl2TK3nQJWYAe6gtr+YRl4GL9ob94KyRqbuHc0cj5tMjCq2fPPL uOlg== 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=T2aejSpup/jdLylt16k4iHZTGZjrzCHoXu3LKyQVTCY=; b=kyEeJsVMEelzI6G3WCxdDWYJASagkqnkfPykTkgSej3uDppc6L4dt839M+J6f10GyJ phpRMNK06UjsmcHIK+uR/7QOTloZxV8c0+XoWd68Z1Vd3TZTcHFmVa0AWPC+62zTpFsG ucAC4ZSeTzB9lQF9xBsRkLme8K3xvhculB9Vu+F8eZQo1u+n0ZTSne1Q5CToEhpnNrQ5 xy80BqzCCRLiYl7HhqIULtswicCI2O396BL6ej3bE1QYQNzNNg3QLc2EVkHg4PxsLEWT lLuhynWklC0zMg2XwCUtGUJCtYAc0vwBuHKNqJtZrCgy+1pzkdJ4X5DXHh4d6EFhduLF KcpQ== X-Gm-Message-State: APjAAAVhuEpVVIogl6U0Qc4+OIqlff0fZ842I4/5Ch0teg1UCOftuNHf bRU1cUwqj8/z9lKPSMTpubbyGETW5ZA= X-Received: by 2002:a63:1d02:: with SMTP id d2mr71711540pgd.26.1558297201454; Sun, 19 May 2019 13:20:01 -0700 (PDT) Received: from localhost.localdomain (97-113-13-231.tukw.qwest.net. [97.113.13.231]) by smtp.gmail.com with ESMTPSA id e14sm18166264pff.60.2019.05.19.13.20.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 May 2019 13:20:00 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sun, 19 May 2019 13:19:44 -0700 Message-Id: <20190519201953.20161-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190519201953.20161-1-richard.henderson@linaro.org> References: <20190519201953.20161-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::443 Subject: [Qemu-devel] [PATCH 04/13] linux-user/alpha: Set r20 secondary return value 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: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This value is not, as far as I know, used by any linux software, but it is set by the kernel and is part of the ABI. Signed-off-by: Richard Henderson --- linux-user/alpha/target_cpu.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 diff --git a/linux-user/alpha/target_cpu.h b/linux-user/alpha/target_cpu.h index 140a459f73..caadb54372 100644 --- a/linux-user/alpha/target_cpu.h +++ b/linux-user/alpha/target_cpu.h @@ -26,10 +26,12 @@ static inline void cpu_clone_regs_child(CPUAlphaState *env, target_ulong newsp) } env->ir[IR_V0] = 0; env->ir[IR_A3] = 0; + env->ir[IR_A4] = 1; /* OSF/1 secondary return: child */ } static inline void cpu_clone_regs_parent(CPUAlphaState *env) { + env->ir[IR_A4] = 0; /* OSF/1 secondary return: parent */ } static inline void cpu_set_tls(CPUAlphaState *env, target_ulong newtls)