Message ID | 20181123144558.5048-23-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2217891ljp; Fri, 23 Nov 2018 06:56:06 -0800 (PST) X-Google-Smtp-Source: AJdET5fWjUdwqzc2ZTuz3u3CvSpJMYD9egbphllLNy9ah0sEVSduS7QaTnYipxcl1LO+vOpyr+nM X-Received: by 2002:a81:334d:: with SMTP id z74mr15893069ywz.437.1542984966147; Fri, 23 Nov 2018 06:56:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542984966; cv=none; d=google.com; s=arc-20160816; b=fQEUzYBCOdy/lEtTsKqr8QSZdMnx7zL98pcb9ZY6FWPPyfFJLqlNtNOyraYSVtC43P 2zwlaMlX4nGQKRm3JuDn0w3mipHG4XDgQwcY12aHJPl3JEaKGxYODxBVzz0/vK5iJKfx 8kqJuBDEkC0i1US+4H7GbVZQd6ronZAInKWs8aNkVYbld5S7JB3TiVfNn6QuKcp9o/PI W7K+3ga7xRZR/Szdt3JeXDTvdMmgzAgri1U12zQLyEcYhlCIFRfo6o9I4tnKIDWweB+U TmDRgGg45qa51Y2W4jIRPThpZa/tlUliLiz8KVSV5/kIaASle3yXfpKMYXsufetHfky8 F1yA== 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=2kjkOBwc36m3JzNrOy40V8NSFyoaC4yO+K9bCMPV9ck=; b=Lfqlga1TK0tA32QJugvjl7BXVWCa3fbTy5o0ld9yDnM20Hk0suK0BOESYzvAJQdhd+ nUy68dsaJZP4qc+2xEu1Jw6xqpeA1pkP2n4YfdPWT0zRzxwDimAgc9xDw87ThahnCGeH S1CZWDIEEMbqMCVt8YSqZlrx20jKfbANEttDLjJTQ49nzy8smR1krBSPWqsX1KeEYKvq WNVqZlYVQ9XPvqlKlrhYQUZJXTorGGVWUvRdCnHnYxJ2Zfzc6HGKgMvBQWeleNf253UZ iVF708gl8/jFmpG8ZP/Lfmf2tftNHJ8WjTul54bxpihV2SOfeoZt/j8VeL7C4I7Ax3xz wyww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=UX5DI7Ds; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q62si5424763ywb.137.2018.11.23.06.56.05 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 23 Nov 2018 06:56:06 -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=UX5DI7Ds; 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]:52810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1gQCsH-0001ff-Eu for patch@linaro.org; Fri, 23 Nov 2018 09:56:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1gQCj1-0000EA-LF for qemu-devel@nongnu.org; Fri, 23 Nov 2018 09:46:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1gQCiw-0003Xa-4u for qemu-devel@nongnu.org; Fri, 23 Nov 2018 09:46:30 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:41035) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1gQCiu-0003T4-29 for qemu-devel@nongnu.org; Fri, 23 Nov 2018 09:46:25 -0500 Received: by mail-wr1-x443.google.com with SMTP id x10so12591707wrs.8 for <qemu-devel@nongnu.org>; Fri, 23 Nov 2018 06:46: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=2kjkOBwc36m3JzNrOy40V8NSFyoaC4yO+K9bCMPV9ck=; b=UX5DI7DshmBua7hZKefFU1DfJOwZYnhQAeuD8RwbqAVvRdPz1n1WaKYJqxb4UPpnrP UrzR2oWanT11/kCauIDhFP+VZX4/mCOLp5WfFmScNNOv+OWdgZDjPOoSYHv9jhCj/urQ 6BM3is+uy44U8rcG0F/kRj8ZdCkStENAvv4Cw= 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=2kjkOBwc36m3JzNrOy40V8NSFyoaC4yO+K9bCMPV9ck=; b=FptfohtlXxvNbcuW++pQo5rq5qOO1Qa31CiPBHx2ZFAo+ovfWjKQWszFvgztSTryhR 28OZJJRHdZQS2i7cMfr+4yinrrsHntXd6WepV/H6eX069EF7Tbsnv5t/eMrQFgLoyCyb XNVk6HbasI5YsE+mm+GCuvZw7oj10Ko7UhmnoLwkTZC+yZbQno3HDbWFUIbZxUNAcpX4 Dw4gY/TjgCuQfmq8wUsO6WYC7ADha/wTo1wGEBb1SDS4rij4agn9VYa3qcQXdrNfPybT vumO1kdykO8yQsO7K+mSRy2M2mNbi26teIvEdH+TPfP4y4sqt7qAjFcDzgpGALu0yBnN 3BWQ== X-Gm-Message-State: AA+aEWZBlMU9puOw6wj8n2cqq94bzPiL5StP9qKCU5xHEm8MVtMI2/KQ WTETsG9mG733wVmYjxVQqoAR/G5U4ByIkg== X-Received: by 2002:adf:f903:: with SMTP id b3mr14726177wrr.82.1542984382198; Fri, 23 Nov 2018 06:46:22 -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.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Nov 2018 06:46:21 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Fri, 23 Nov 2018 15:45:43 +0100 Message-Id: <20181123144558.5048-23-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::443 Subject: [Qemu-devel] [PATCH for-4.0 v2 22/37] tcg/ppc: Add constraints for R7-R8 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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: <http://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: Alistair.Francis@wdc.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
tcg: Assorted cleanups
|
expand
|
diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c index 6377e3a829..484d90ead2 100644 --- a/tcg/ppc/tcg-target.inc.c +++ b/tcg/ppc/tcg-target.inc.c @@ -236,10 +236,11 @@ static inline void tcg_out_bc_noaddr(TCGContext *s, int insn) static const char *target_parse_constraint(TCGArgConstraint *ct, const char *ct_str, TCGType type) { - switch (*ct_str++) { - case 'A': case 'B': case 'C': case 'D': + char c = *ct_str++; + switch (c) { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': ct->ct |= TCG_CT_REG; - tcg_regset_set_reg(ct->u.regs, 3 + ct_str[0] - 'A'); + tcg_regset_set_reg(ct->u.regs, 3 + c - 'A'); break; case 'r': ct->ct |= TCG_CT_REG;
These are function call arguments that we will need soon. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/ppc/tcg-target.inc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.17.2