From patchwork Fri Nov 23 14:45:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 151885 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2215452ljp; Fri, 23 Nov 2018 06:53:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/XXtvBGnZjxLpNi6/Ww99iI6wtHVdNGLkyDwYt1CXhNjnN7mtu3E5Yvn1VNdF0tqmXkqWYI X-Received: by 2002:a81:de0d:: with SMTP id k13mr5500817ywj.61.1542984834187; Fri, 23 Nov 2018 06:53:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542984834; cv=none; d=google.com; s=arc-20160816; b=q3dhd0i7nk3AieYA7RFBw03ZJ9k5wosNaQtvcnZK1k47bb+5fd8i3yirRnGgqqd3fS 9licNXTBx2t+EwfNoMQKgcq4jB91Fy2IJbcXRDFWpD6Pyy2XzwTxjmJ+vsofJAF5ssQk 02bOn2eTJNb7z5UGV6F3tjc2IjozlFcGmP4ZMlSPi/ndHJ3tlGacnmPAnXK6JORmyDmq BFZTwpbiYzQAkqyVgEPqj4JQORZqjVHh+J/aNo85UL3zk0XaUQinfRZ+K2KJi4FmTyzB nzlpzESDLCkNTC7x69seyFNmKGODjrbObDVFPX9O9xmtVhJFHkZgjQMgm/Oxhp6O9gv9 XxSw== 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=dEMW7UG/VwRHHO8qBaUD73G0cEqvXtdIe4LBfAmg/J0=; b=VQVpCzTVrFt5OiFWJOYTiRvH/5TYzanF+xqs/rTyykprwey1f7i2O4RBbfemm9anWD oIX22+TcG+HvP9l7zJViJVAGLRleYTQdlWNl6eXdu232sRo7oTzQhGkbiSHEC9e58D/J SpcD5M70/UZTmP+715QuiZO9Es2rzzPGg1X3RMZ6IJa0Qa4Hot+AVaPlMPNCPetDksry rdKiV267wycD/bGsu0PYe2vlbhESub7g8tDCBxSE1+1F5YOd2HnPUv84LD3G+L24716Q tgZ6AQlndQnzytjxCcNqsXg3N0OoabgII/NUFTSv6agK97tysxv6jAG9YK6BhQoxldJ7 uhLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kMLvLT+r; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id g64-v6si34577106ywd.44.2018.11.23.06.53.53 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 23 Nov 2018 06:53:54 -0800 (PST) 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 header.s=google header.b=kMLvLT+r; 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 sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:52793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQCq9-0008Hl-Hd for patch@linaro.org; Fri, 23 Nov 2018 09:53:53 -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) 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-Received: by 2002:a1c:8314:: with SMTP id f20-v6mr14249722wmd.120.1542984370190; Fri, 23 Nov 2018 06:46:10 -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) 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These are function call arguments that we will need soon. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.inc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.17.2 Reviewed-by: Alex Bennée 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(TCGArgConstraint *ct, const char *ct_str, TCGType type) { switch (*ct_str++) { + case 'a': /* x0 */ + ct->ct |= TCG_CT_REG; + tcg_regset_set_reg(ct->u.regs, TCG_REG_X0); + break; + case 'b': /* x1 */ + ct->ct |= TCG_CT_REG; + tcg_regset_set_reg(ct->u.regs, TCG_REG_X1); + break; + case 'c': /* x2 */ + ct->ct |= TCG_CT_REG; + tcg_regset_set_reg(ct->u.regs, TCG_REG_X2); + break; case 'r': /* general registers */ ct->ct |= TCG_CT_REG; ct->u.regs |= 0xffffffffu;