From patchwork Fri Nov 23 14:45:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 151886 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2216046ljp; Fri, 23 Nov 2018 06:54:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/VT5heCVILdXgexx4JcHXcihMgt958oRiycUGHmHPfHw/v49y5ZRO+ZWDRRI9vtddwKyLuM X-Received: by 2002:a25:504e:: with SMTP id e75-v6mr16212195ybb.41.1542984864848; Fri, 23 Nov 2018 06:54:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542984864; cv=none; d=google.com; s=arc-20160816; b=M0bKvXO2JqiWfnQ2BwWPcppOtnE26Pl8Q2yO7TLQDtrQhyoJZSMvgM/O7parkVOHA5 RunlyodYXxjEK1LzquM58qmcU5KteBVHHijLEM3HKRbbCb6mRb5xTvZid7bV6F2PxlzJ T/3+NHibvXR0NIuzy2PKFYwk5cP6BOGI8mVRiCHOSkkVOnu1EFTbJvoQaUfIsPpv7Lyo sTa4BBGP4Kj2P4tW+RefdVUsKTWtm47lhQ4A7ehAD359hdRF5E/gIV0GidtWcM28dXqF pWFB7JWWheoSw0dv1psSYUHLLL/Zj5fYppvkcVeojMCZAB7tkq7AN0+js97JYRRzJ95o 9A9A== 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=K9NRP+HhbIk1nF+G1KmKV31hLuf4u/VMHyrlWpIJenM=; b=SCVr5J4j/GrogYGvx7NdAO49tlse58TLvcJcYZsTvNJvR61Yk8VU/88LKZsPIBLSlt fI0zreRmpusp7wi8FIb1LL88TSeNas3xeI8WylRLoXrL+an4wIEBPrtQW4MkQVzuZLh1 yZCbtuTOb1cfLgNIjkEakcxjRY1nGQmZFxcNj0Zi0FilrMwKTstY6QKj8WkaPtnjNIhA xMDDf+M+gpxoVEMwfFbZw/lammls0BNMdpPj6FC/oKL7bDU8fCi+BvfkzlZHyn8dONah neX+MTz4QDCsqi4WCU77llBFj2X/thUf1JGbwxiKGEdmyJQCs8bCMdOM+2c6+XS9EEeK 1loA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=E5tklL5h; 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 d18-v6si33840616ybq.365.2018.11.23.06.54.24 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 23 Nov 2018 06:54:24 -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=E5tklL5h; 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]:52797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQCqe-0008MJ-67 for patch@linaro.org; Fri, 23 Nov 2018 09:54:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQCis-0008Gf-3n for qemu-devel@nongnu.org; Fri, 23 Nov 2018 09:46:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQCio-0003Ng-4g for qemu-devel@nongnu.org; Fri, 23 Nov 2018 09:46:20 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:36673) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gQCin-0003Ma-OT for qemu-devel@nongnu.org; Fri, 23 Nov 2018 09:46:17 -0500 Received: by mail-wm1-x343.google.com with SMTP id s11so12262861wmh.1 for ; Fri, 23 Nov 2018 06:46:17 -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=K9NRP+HhbIk1nF+G1KmKV31hLuf4u/VMHyrlWpIJenM=; b=E5tklL5hxeRc8zC2OHdv9x6CEOf0IAp7HTls4N/yLG9J9BTgGpvXZB2s/U8gJMic9k tSJ/DajIZSGdfb3SHX8ONcBIl8VeWalXE6iQ8IYeSim5v7KvrX4Dzdq41bYeMKQrR3xY VIvBSu58i8SSWo37MvI1CkoIvLqlXGw/ycQfE= 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=K9NRP+HhbIk1nF+G1KmKV31hLuf4u/VMHyrlWpIJenM=; b=jNyXBTUeNLfYT1EbeKWkItZnpVioLovv16+tvyh7osOotBqwNhtugcQmRZ4VUK26c4 yCRc4nuIFfpQOMCeWEuUe/6cG1vU5U0AlkIcn33CDBhOpZj4DNx2QZ5NbmiBTRbQRXfN OpZZBBdolKAqj6GxEE3NzoDSI2MuFDbo3A1heSPTjakImSVGFWGqBcflYEdfYwtFUxQZ hUWeGnW0AwQYdiNLr32YTHsXJJEnDYWvl2DMdblw2xSS747bY3jAfWp1lQ7IJb220DVu cAYMvH0nXBm3JtavFwpgkRc/V5oTvpSCHSyv3/vgKpFWFTAaR17oFz/th21z+eDLhf5D SKEA== X-Gm-Message-State: AA+aEWZ3ByGygYRMKz3T9zLcisx+gfAZELm/PPKn8HBh481je3yjNU2k ZHDeDboqY38HgN24/Krw7+xkzGDuvrbbCw== X-Received: by 2002:a1c:3288:: with SMTP id y130-v6mr13537416wmy.11.1542984376329; Fri, 23 Nov 2018 06:46:16 -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.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Nov 2018 06:46:15 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 23 Nov 2018 15:45:37 +0100 Message-Id: <20181123144558.5048-17-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::343 Subject: [Qemu-devel] [PATCH for-4.0 v2 16/37] tcg/arm: Add constraints for R0-R5 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/arm/tcg-target.inc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) -- 2.17.2 diff --git a/tcg/arm/tcg-target.inc.c b/tcg/arm/tcg-target.inc.c index 414c91c9ea..4339c472e8 100644 --- a/tcg/arm/tcg-target.inc.c +++ b/tcg/arm/tcg-target.inc.c @@ -246,7 +246,12 @@ static bool patch_reloc(tcg_insn_unit *code_ptr, int type, static const char *target_parse_constraint(TCGArgConstraint *ct, const char *ct_str, TCGType type) { - switch (*ct_str++) { + char c = *ct_str++; + switch (c) { + case 'a' ... 'f': /* r0 - r5 */ + ct->ct |= TCG_CT_REG; + tcg_regset_set_reg(ct->u.regs, TCG_REG_R0 + (c - 'a')); + break; case 'I': ct->ct |= TCG_CT_CONST_ARM; break;