Message ID | 20191106130456.6176-6-laurent@vivier.eu |
---|---|
State | Accepted |
Commit | 083244d320c3d8d7b93a08b2b0f5d06c6295be66 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp587983ilf; Wed, 6 Nov 2019 05:11:56 -0800 (PST) X-Google-Smtp-Source: APXvYqw9ErNybQ1T6LWxg5errTQEoyoCC0VWVFVPeeYk3Fxy2opaqA8OvfDARPlud57Z6ILAve9h X-Received: by 2002:aa7:db82:: with SMTP id u2mr2524527edt.256.1573045916123; Wed, 06 Nov 2019 05:11:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573045916; cv=none; d=google.com; s=arc-20160816; b=ERloXpDZ8p0nz6CJi6YD1fUIgFbkOpEmwLM1ehrOF9/9ZzGvMON7y6zo7bdhaYDaaU 2fNsF2NT3lafsEoILqymD1fjEStOejOHyTKH6UsIK59BB4+AZc8KVwPpbdiX1holmdsz tmG4tDEIhgiqrlhAZBH1bUJMXOHSPLkkl6b961ieRnvDmzyyS52Ul2WS/86X559BHr4t qaj9sR4otIvn441yKxyihcsc24OUajieHPTCJc6GFCQgaOQaF9hf22m195Btg/No/KoM MyCPWydEWHLo26cTLExCZAhlvD3RlwoVY/RKquO4dMsgYXUisT8+bQ8C5RGkuJBL2wDW 3L9Q== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from; bh=Z/ZwozH3rjs3ve+ASBDKmMI6P0/gKJPVZj+97ipT9eQ=; b=pWWZ2qDh4R1yvXazr6U4oaObURczhIXE0x2+ps3BtDF9Ea/CrcM8nU1aIYWsC3J8Wi x/2LhYdYBM5T05WXxUuUaIyj7GvygfnVSWaNXqOsd1tLS/0ZuksX0ux6vrOuD/zcrXQL XSsh5XKzsb9316AL8QQ/sQQliKChBWGOAjtNIJxD0i/mRhOl1AuGekMkKqR4mjzGqUyk P4g46LmSjtVjFT/7Wc44VRngc6rB7dZsZAyc3P4BwzyLXLKay0MHPClxIq53A5TCPxfG v6AolzWfUelbdGEVpDTRb2ayN3TrF/Qr/xWdZVtVprcLVlYhQ4NtBOEZIWoUhfFZX2dW 1qag== ARC-Authentication-Results: i=1; mx.google.com; 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" 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 r17si12585131edx.257.2019.11.06.05.11.55 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Nov 2019 05:11:56 -0800 (PST) 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; 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" Received: from localhost ([::1]:57898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1iSL6I-0003gt-Gq for patch@linaro.org; Wed, 06 Nov 2019 08:11:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36536) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <laurent@vivier.eu>) id 1iSL00-0003fm-Lb for qemu-devel@nongnu.org; Wed, 06 Nov 2019 08:05:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <laurent@vivier.eu>) id 1iSKzz-00031f-Em for qemu-devel@nongnu.org; Wed, 06 Nov 2019 08:05:24 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:46979) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <laurent@vivier.eu>) id 1iSKzz-000310-5O for qemu-devel@nongnu.org; Wed, 06 Nov 2019 08:05:23 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MkpjD-1i4rov2Kcx-00mHgo; Wed, 06 Nov 2019 14:05:10 +0100 From: Laurent Vivier <laurent@vivier.eu> To: qemu-devel@nongnu.org Subject: [PULL v2 05/13] linux-user/sparc: Use WREG constants in sparc/target_cpu.h Date: Wed, 6 Nov 2019 14:04:48 +0100 Message-Id: <20191106130456.6176-6-laurent@vivier.eu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191106130456.6176-1-laurent@vivier.eu> References: <20191106130456.6176-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:MhlD5dVVZ7dtnCdYUPRmKP25QXNwXDN6lyKD4g0G1XO5VAFwss4 cWAz8NkDxJqW8m/c8QpLJLT1JM/ro7c/zd6ai9TJGR3iYwQYmE+T/YgE3KOAHT4QdtKaPLg 37doHcSjGhD3XI+KL9IPwasUjOMlmOAWzJHtjOESsIs7h4IxQdMa6T+3AI+Fxqnrx2eXoK3 bZoSXnm4cOHANj/9ZMrOw== X-UI-Out-Filterresults: notjunk:1; V03:K0:xkGsBVyoy+4=:bOXgfNrSiZ9CadHSqeQCxd e8WqA9Dixy24nCBYaqXpPBNJNEi6LCFzfsYkaDT1CFF8W+fbQLsGMd2iggOmMNJdBN4WgXZlk S9FlzDIbgvTsatt/VmeSbv5gJ2PiwDgmbWOjTPp6vtizRX+y/oiaSHiP650KKwO8k9ZVpN+Le gfinaToEDVBzulmOHCH493Lpu5NZ2czailDKelT3gTGXyVkuglv5a6NQJTivz34HTPX4o32ep xhUrrJbYWk9at04w3C5ag4CwaPbHiiVA50SrOhyqIiKhu4t/66J5w3aOWB7NcEooy5ptUw9zL qNohoH25iGMAMtuE2U8b5zruSS+eISFtMpKDWE5JRHjGJgk/sCDgXLuXcpp8J80+LX7TKLjaH jwuhN6KbR6UTHRmG4iTwKAlfgMTrBquZRglleH2Su4W9r4ywJ6Rx/mC6EVFoF9IJagK0yGfR6 p4VaKL1WbhjpwIk9Ex7Ot/1bjxcp210cP5Xi7/I4GHUpqzoVze0lm6CSQ9WU+6nCxzSOCQ7Vj h0u2H7UTYVi3a0beVC3u/egh+o9+7w+2Cq0v1x9J6sgH2CMvl2LD49JcZeAZfXpdEMwhynikV oJ6U4FAFK2G1q+qiGULfzX2A7LWIZ5Nb5XENa9NrhcgWuXF3yBXEp+KwEzpm3t3K1NAXORP5w ahrQqDSaFY08l+pI+SJxvk0KF/tTGbtcVfWg3+2yvKbScvV/1ZDK8HYEJaZjQsCsptlsqFN0q ZLsJW7lcScUVm6nb4oHXN3kf2JZ5qLAWO00K2A9ki1UT7NNJUye7aiLPBJAMIjEGoVK72/bHG EanAPDGfOkCuKjTYF35skvtGtaT98lFOiTOlO9JRw5QJpkOL1AJeKQ5LOEtvBH2Oi4UepqxaG amB8GK/53Py3rPnLaOFA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.187 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 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: <https://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: Richard Henderson <richard.henderson@linaro.org>, Riku Voipio <riku.voipio@iki.fi>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Laurent Vivier <laurent@vivier.eu>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Artyom Tarasenko <atar4qemu@gmail.com> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
None
|
expand
|
diff --git a/linux-user/sparc/target_cpu.h b/linux-user/sparc/target_cpu.h index 1ffc0ae9f2ec..b30fbc72c43b 100644 --- a/linux-user/sparc/target_cpu.h +++ b/linux-user/sparc/target_cpu.h @@ -41,15 +41,9 @@ static inline void cpu_set_tls(CPUSPARCState *env, target_ulong newtls) env->gregs[7] = newtls; } -#ifndef UREG_I6 -#define UREG_I6 6 -#endif -#ifndef UREG_FP -#define UREG_FP UREG_I6 -#endif - static inline abi_ulong get_sp_from_cpustate(CPUSPARCState *state) { - return state->regwptr[UREG_FP]; + return state->regwptr[WREG_SP]; } + #endif