Message ID | 20171020232023.15010-12-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2225012qgn; Fri, 20 Oct 2017 16:28:16 -0700 (PDT) X-Received: by 10.200.46.58 with SMTP id r55mr10111653qta.244.1508542096506; Fri, 20 Oct 2017 16:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508542096; cv=none; d=google.com; s=arc-20160816; b=Bd7VlpzOSTEp897dos4679gTSrJzs8aruUvxh72cYf91dlX6LdJKUCzcIX6Iw3R7uq xsEBk3YDs0wHAtRf27bQxE3+qRyUwZQ0/qIgumBa3UonkWNgFpd1Q0sfji9Njlof/GXp CpDSjM+Yy7SwN4QgLKm82lKOPup4MrZ46ivqKNGLbZYA4Tgc3cVN2mLUtB6yU6JfGLF+ YLvGwjs0OqNKsikRkpocaswVE8tIO+Ai8dGNiTjCwhSXTT/WEj/o8I+O8nV1OzTtxgA7 qkWDz0U4hQGFrHmHCe6V5AuskpJun7dAI39+hlXt+qllNfYH3xGiXqgonKTFSX4JqKAH 7geQ== 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:arc-authentication-results; bh=lQ25zzp1lR1bCXxZVf8ZlpQuH3u4DytBLiYzdvzQFQ4=; b=nE4w8UGmtiQc5D4J5wvru/Err1gWkrxov3Uc9GtEnHRBMPiIu6zNvxnYACGerNVt9J 3Npzt0Zlr0l+BEM0ohg4XqRC1ao86JI8Bd/lbR98vMebvw7V4IvMvFc5xPq+pxLm+qQq 6eK2/H+FPlk6HXJbCR1aAGQ/P7s2MUc3UWQ89XQ7BKoG2ddtn/kVPU9dUaNOnJ9pdulw vk5lqf/Z2uHOKrJ+soZ01QPx/cdqj7/ggYHxIZ9eRYwniLzEM+lHxhZOovrUw42BiwGE mWxOaSSxmyuYSUNxj7IvMcNzaiCSwZ8OsKa/cGMY4KDp0FFsv6DezjxdWhy8NWpgzVFn TwBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cqTdlqHY; 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 k34si1232792qtf.93.2017.10.20.16.28.16 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 20 Oct 2017 16:28:16 -0700 (PDT) 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=cqTdlqHY; 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]:56008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1e5gi6-00047M-Bw for patch@linaro.org; Fri, 20 Oct 2017 19:28:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1e5gar-0005vf-3l for qemu-devel@nongnu.org; Fri, 20 Oct 2017 19:20:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1e5gaq-0007bt-9P for qemu-devel@nongnu.org; Fri, 20 Oct 2017 19:20:45 -0400 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:44454) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1e5gaq-0007bZ-3t for qemu-devel@nongnu.org; Fri, 20 Oct 2017 19:20:44 -0400 Received: by mail-pf0-x244.google.com with SMTP id x7so13079123pfa.1 for <qemu-devel@nongnu.org>; Fri, 20 Oct 2017 16:20:44 -0700 (PDT) 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=lQ25zzp1lR1bCXxZVf8ZlpQuH3u4DytBLiYzdvzQFQ4=; b=cqTdlqHYYonf0U62Fq58JA4npybDf4ZRD2pD0zhx/VCpAgt9UVzQKBuXW8H+ywA3T7 Ud4bpmDAQD3llRoh08ofPFjsQ5V4Z/3kyd3I2eMH8nH++iPT8wGI04v+hDOpljsi+NJw SYiV4VwS6q15gxEfVarQzij6Ag6F+LZDO6/IE= 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=lQ25zzp1lR1bCXxZVf8ZlpQuH3u4DytBLiYzdvzQFQ4=; b=nPnko5s17lDuocUNaisLLoZKDsYYSXg0RbfPRUxpJLGCDaatCeCIs2HCjDQLhDspKo Q33+RiqGglv2PndcYzmvjc5Cz4xKeLj0ukqz21m4J8Yym0JfcoF7Sc2xq2hpFb+TJYtK daII0hhfuc7KtwhNHZXT/RPbIOWscFBi1EYt+Di66raB4u/+xsvaa2K1nl5raYadZxkT aR99qNp8WbeD9yiBdemFz72Df9S2ioS1R4GSfe7fSL54oekJYm+NSyaP9bTiWqpXt8qA y9pa97YGXVh3BPObmfysEN2F8gW841JPWOS0TsizV8QaXi2qw0OVPk9g27oKe5BKuOx4 w+bA== X-Gm-Message-State: AMCzsaUUZ2nW7h04+boiq5HIS09Wh6ONGQPWmbtksdXn4o3hM9esfK9y /H5OCaOdrPpfHM+0VZYwzwqNc+z3uZo= X-Google-Smtp-Source: ABhQp+QNRe7K7e1tx1zOoZjbarLrm5DgTkhfRHGCN8wpOTAH3hmGU0E60xIK0ha8dUPWTRGxLbgGgg== X-Received: by 10.84.194.131 with SMTP id h3mr5383084pld.264.1508541642844; Fri, 20 Oct 2017 16:20:42 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-165-104.tukw.qwest.net. [97.113.165.104]) by smtp.gmail.com with ESMTPSA id a17sm3532594pfk.173.2017.10.20.16.20.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Oct 2017 16:20:41 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Fri, 20 Oct 2017 16:19:42 -0700 Message-Id: <20171020232023.15010-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171020232023.15010-1-richard.henderson@linaro.org> References: <20171020232023.15010-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::244 Subject: [Qemu-devel] [PATCH v7 11/52] tcg: Change temp_allocate_frame arg to TCGTemp 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: pbonzini@redhat.com, cota@braap.org, f4bug@amsat.org, Richard Henderson <rth@twiddle.net> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
tcg queued patches
|
expand
|
On 10/20/2017 08:19 PM, Richard Henderson wrote: > From: Richard Henderson <rth@twiddle.net> > > Reviewed-by: Emilio G. Cota <cota@braap.org> > Signed-off-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> > --- > tcg/tcg.c | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/tcg/tcg.c b/tcg/tcg.c index 840e65c0d4..c10e73babe 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -2096,10 +2096,8 @@ static void check_regs(TCGContext *s) } #endif -static void temp_allocate_frame(TCGContext *s, int temp) +static void temp_allocate_frame(TCGContext *s, TCGTemp *ts) { - TCGTemp *ts; - ts = &s->temps[temp]; #if !(defined(__sparc__) && TCG_TARGET_REG_BITS == 64) /* Sparc64 stack is accessed with offset of 2047 */ s->current_frame_offset = (s->current_frame_offset + @@ -2152,7 +2150,7 @@ static void temp_sync(TCGContext *s, TCGTemp *ts, } if (!ts->mem_coherent) { if (!ts->mem_allocated) { - temp_allocate_frame(s, temp_idx(s, ts)); + temp_allocate_frame(s, ts); } switch (ts->val_type) { case TEMP_VAL_CONST: @@ -2382,7 +2380,7 @@ static void tcg_reg_alloc_mov(TCGContext *s, const TCGOp *op) liveness analysis disabled). */ tcg_debug_assert(NEED_SYNC_ARG(0)); if (!ots->mem_allocated) { - temp_allocate_frame(s, op->args[0]); + temp_allocate_frame(s, ots); } tcg_out_st(s, otype, ts->reg, ots->mem_base->reg, ots->mem_offset); if (IS_DEAD_ARG(1)) {