From patchwork Mon Nov 12 21:45:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 150889 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3655083ljp; Mon, 12 Nov 2018 14:01:53 -0800 (PST) X-Google-Smtp-Source: AJdET5e2UjUDmYdzxesD+oFFi2iSmOBmzKbjzW9zLncEOMSGqFuO4VbD4KytC/N0WFWf/2xB/ibh X-Received: by 2002:a0c:c993:: with SMTP id b19mr2613971qvk.126.1542060113562; Mon, 12 Nov 2018 14:01:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542060113; cv=none; d=google.com; s=arc-20160816; b=kz2uT9aFUrW9IEHlT1Au5yftu7yKZOPfEHsAJtPN/nZpK9rlyIISQzuXOTNJIwf0Yb /nxrgeqi/VUSFCFbBw6eZxd3oAVXqR25nKVvArCMAsHvfk0KjjEZI+gxi9K2sxPc8KdR LyNnPmxKGSXLI1ANQ+LzcWE/fs6p9XLaJMzklpES94VyO1GoyfZWesJySn9aPediTc3v 2z6wYqI4g8yT5J10ZHseRylC/RqcUl4qrzqsEfizc5w4ZSbnj0CFRiD5XFPabZ1Ewwuj cWMkIYZcaQOKR0Q4BiqCqKdMZg3GAtLyXo91wKtCEKOKr4s6vfple7rngryj9C9fyNbh w5pQ== 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=VgkC110MaWSfJ7RxbCSiOGZJlgLCBSE9pfScHU3Jxk0UZk0pfWKLdaaP6OzPQ9OWoN BzezQZawK4XEjg0cQPyzcBSBUbqdhe+i8VF1C2H9r0KcIU/p6r2aRcS36h6GiEYltgdF rSrycCgX+n411u0pvmXyvlKxSTJ5J02H5lmI0Hk9zhf4hYMWGc9Z8azRTyoh3k9PXR3S aiDlsOqXtQ1zGvMFNieV6glbxIF1az5o+B6mxEFlBNq6vDRtFq0uyXr3+BX8WV5qksdg OlYPWOMJ7C4eYuowCWZOw4mm9I++q814ZD56vzvYcK6omB7btX0g+T7HtmBxQ33v9rKq XeaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BzDJMzcx; 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 i36si2517061qvi.129.2018.11.12.14.01.53 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 12 Nov 2018 14:01:53 -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=BzDJMzcx; 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]:50884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMKHI-0008Js-Rk for patch@linaro.org; Mon, 12 Nov 2018 17:01:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMK3W-0004bP-UZ for qemu-devel@nongnu.org; Mon, 12 Nov 2018 16:47:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMK3M-00056B-C9 for qemu-devel@nongnu.org; Mon, 12 Nov 2018 16:47:30 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:46966) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gMK3K-000523-FY for qemu-devel@nongnu.org; Mon, 12 Nov 2018 16:47:26 -0500 Received: by mail-wr1-x441.google.com with SMTP id 74-v6so10991509wrb.13 for ; Mon, 12 Nov 2018 13:47:23 -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=BzDJMzcxvGuEyXfSWBBktBb7SO9Q2Q1iiTTQvZIVVrPHxzSXP03QXjIB5cW7BGbRXV ehQkoVlv0rKgk7nKcScmrHqoDTJM/fn7+JmvOfszJUmRUSQ8glOgfk2sWEnQdgdqE4Wl E+zvPu3fK9QThDjiye6NqZR91rsCO9DqJd0dY= 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=kGrecwN1+ifV9M3br50i78grxsVfHBnJmjRJpmkX5KV6CkxLDtccf+J5/c8dn7bo8a Usu/x58IGSZjoBK+/2NbSkz0ZPZY68hDAMTRlpvCau4v7ot2XhnuWQfEo0BtkLAZw/ac 9IlMixDSVpZuvRrWP1GMSE1pa3UMxnZGTJ5k1Xze7PGt4hljdMPBOSMnXg0QAUTjgdn6 6FkABG3TH6xHmTF+j7CrGpXxChPQhGewATqzzTAqULqrUjLM6HXuaBOeTUWKSilks3nw BKE7tFqzZLaqnirjBDH7kIWNQZ+f9zKLqfktJ1qXLV767UDaFvig5HgcyhmaBtZ0fC2f O4VA== X-Gm-Message-State: AGRZ1gIOxh02kBs75wQ8NTak8wB3TN+96L8TxbzxFCJTDND7KjEf4U5d YoH/99Mx+mCnzLVMTEq4+Vs3K8JnVST2pA== X-Received: by 2002:adf:b453:: with SMTP id v19-v6mr2526849wrd.47.1542059242038; Mon, 12 Nov 2018 13:47:22 -0800 (PST) Received: from cloudburst.twiddle.net (178.red-213-99-154.dynamicip.rima-tde.net. [213.99.154.178]) by smtp.gmail.com with ESMTPSA id y123-v6sm3946907wme.38.2018.11.12.13.47.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Nov 2018 13:47:21 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 12 Nov 2018 22:45:00 +0100 Message-Id: <20181112214503.22941-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181112214503.22941-1-richard.henderson@linaro.org> References: <20181112214503.22941-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::441 Subject: [Qemu-devel] [PATCH for-4.0 14/17] 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: cota@braap.org 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;