From nobody Tue Feb 10 23:58:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1542984783780422.8219292020393; Fri, 23 Nov 2018 06:53:03 -0800 (PST) Received: from localhost ([::1]:52784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQCpK-0006DN-Dk for importer@patchew.org; Fri, 23 Nov 2018 09:53:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQCij-00080W-RF for qemu-devel@nongnu.org; Fri, 23 Nov 2018 09:46:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQCih-0003Du-Qz for qemu-devel@nongnu.org; Fri, 23 Nov 2018 09:46:13 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:34360) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gQCih-0003CZ-Iw for qemu-devel@nongnu.org; Fri, 23 Nov 2018 09:46:11 -0500 Received: by mail-wm1-x344.google.com with SMTP id y185so7737542wmd.1 for ; Fri, 23 Nov 2018 06:46:11 -0800 (PST) Received: from cloudburst.twiddle.net ([195.77.246.50]) by smtp.gmail.com with ESMTPSA id p74sm10339630wmd.29.2018.11.23.06.46.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Nov 2018 06:46:09 -0800 (PST) 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=dEMW7UG/VwRHHO8qBaUD73G0cEqvXtdIe4LBfAmg/J0=; b=kMLvLT+rLD14wrCk4zA0iX1FSJpw7j2sCcO7yspP31Tn6e6yKLV6JmMlleud6kOHuz MhJDp7+1TqM8VTRypp8DS22+TOMp37WjARPd0v3LJoK0kcQ5d9mNQ9E3+A6X5SY/15RE yZ5sdOoS8AcVDhRSDPOHCz8LnkOAqojnV4zoE= 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=dEMW7UG/VwRHHO8qBaUD73G0cEqvXtdIe4LBfAmg/J0=; b=lIEKNUn7Iv2Rb9S378ccqL/55EPuYWWp9J9+J8pQC9gyG06U3LPgGVtWawy7Wp5Wbu L2Q0RPcrFJGlpN54g9R/X0O90jfRu7obhvz4WbSaBJ5qAGYX/9zWFBJGHLOmh4Bt1pC5 v+3P3XaApQ4cm9oW8/8LDmXiSkRUin5n+7Ww0p6zETaw1cZrzOurn5KYorW6YezZYTA6 dSOXLV0VjuVRySt5aFCDeqDk3FE6asVbhbAh0T458QYiNY3ZBe2cVWEWUyHNIObMdDHT BOQUVW42t0/qtWxYQjPd87BDVJ9SZIZr2THVzluE02EKttC1SxWGCpccfoXxB/NrHT+r Lryg== X-Gm-Message-State: AGRZ1gIWLUZTcYjnEO8HUHGvSmXvhLpaM03rND56PGhQKT8xoEB3PYCC l342oBPWlQDycuf+K5SAWz/HAY9VS3LZ7A== X-Google-Smtp-Source: AFSGD/VVfTMJ+8QVHM31uQLdUJQFYJPfNpAhJd1QLtvmGRVCHApULPHGw67F4h3U1IQA6yS+zcix/Q== X-Received: by 2002:a1c:8314:: with SMTP id f20-v6mr14249722wmd.120.1542984370190; Fri, 23 Nov 2018 06:46:10 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 23 Nov 2018 15:45:31 +0100 Message-Id: <20181123144558.5048-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181123144558.5048-1-richard.henderson@linaro.org> References: <20181123144558.5048-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::344 Subject: [Qemu-devel] [PATCH for-4.0 v2 10/37] tcg/aarch64: Add constraints for x0, x1, x2 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: Alistair.Francis@wdc.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" These are function call arguments that we will need soon. Signed-off-by: Richard Henderson Reviewed-by: Alex Benn=C3=A9e --- tcg/aarch64/tcg-target.inc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tcg/aarch64/tcg-target.inc.c b/tcg/aarch64/tcg-target.inc.c index 30091f6a69..148de0b7f2 100644 --- a/tcg/aarch64/tcg-target.inc.c +++ b/tcg/aarch64/tcg-target.inc.c @@ -125,6 +125,18 @@ static const char *target_parse_constraint(TCGArgConst= raint *ct, const char *ct_str, TCGType typ= e) { switch (*ct_str++) { + case 'a': /* x0 */ + ct->ct |=3D TCG_CT_REG; + tcg_regset_set_reg(ct->u.regs, TCG_REG_X0); + break; + case 'b': /* x1 */ + ct->ct |=3D TCG_CT_REG; + tcg_regset_set_reg(ct->u.regs, TCG_REG_X1); + break; + case 'c': /* x2 */ + ct->ct |=3D TCG_CT_REG; + tcg_regset_set_reg(ct->u.regs, TCG_REG_X2); + break; case 'r': /* general registers */ ct->ct |=3D TCG_CT_REG; ct->u.regs |=3D 0xffffffffu; --=20 2.17.2