From patchwork Wed Jun 21 02:48:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 778602 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wsqJ42bsJz9s2s for ; Wed, 21 Jun 2017 13:02:12 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="rDfo82Qn"; dkim-atps=neutral Received: from localhost ([::1]:51587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNVuC-0000Ag-3Y for incoming@patchwork.ozlabs.org; Tue, 20 Jun 2017 23:02:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNVhM-0006Xs-Er for qemu-devel@nongnu.org; Tue, 20 Jun 2017 22:48:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNVhL-0002QC-Nn for qemu-devel@nongnu.org; Tue, 20 Jun 2017 22:48:52 -0400 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:36458) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNVhL-0002Pr-Jj for qemu-devel@nongnu.org; Tue, 20 Jun 2017 22:48:51 -0400 Received: by mail-qt0-x242.google.com with SMTP id s33so25676343qtg.3 for ; Tue, 20 Jun 2017 19:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=igMhVPX+FALQ6Jdvd7e2P1SeZZIxbi288g8JIBLHRA0=; b=rDfo82Qna+i9MTOoGUYfV+ygJyhLFgk+sYbBRaT06rO3qES0rkSmMyvpRdXc+iIZlW Sko4YS1jwbwzrhWCISzo8K0ClrPwiUhyBsrnmbxV6MGkYS42/OkCwMzL6CABVv66TNKv vTsUz7ksIXvozwEtJs3ACjINtdwRNzJT+52qgczjLKvwjRUyMklFIpOla8ymdXou2Goa vyOouaOhWXRUvmHNvHgMvnPenogo5WUiNyt0H5nlgePhibWe01CT8sPNCXn10sbFdWuQ jfYKUr68myky7HYjI46u4IDnQeln0khpLLPZQb+KkQg357IjtBBm6IpEsjEI/d0XwlQw P55A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=igMhVPX+FALQ6Jdvd7e2P1SeZZIxbi288g8JIBLHRA0=; b=Pn9L0cswmO8MLWYT25gnU3XrDyBgaVgRB8P8gBMe4bUqUKCwZpUmhbfv2Dzf9i9NZM temtcktD29x7s6s1a9LVm7nP8cY6sCYXGsfeNLUu6sLChChQPF8nLBQAV1Jvp8RCGUtG 2eNhnxzHF8y3uKEM9jtVy6Me/kyPShGxbCoxKAYlXvnn3Npt5C7hgefeTmdBOCuDHVEk OD+tByxB2yrdcnykJR+C3StpfdqowTlRD/4HEu937jsj302zBtiJ0ar6TzCtIVnuMvcd UCYsV8vtnZ+WQiKEpii2LjWlZu+QJFhbIh2Nc+QaDFsEoeoGmzyOU9kYtjrqLHOk9aIo YIiQ== X-Gm-Message-State: AKS2vOzRaOHyZ/PrtynQxL9jYyI0tZ+RlDi71PCRu4jbjKMPezi5HwFF ywNYH9Z9zfa3j1IB5Mo= X-Received: by 10.200.2.168 with SMTP id p40mr39579359qtg.34.1498013330792; Tue, 20 Jun 2017 19:48:50 -0700 (PDT) Received: from bigtime.twiddle.net.com (97-113-165-157.tukw.qwest.net. [97.113.165.157]) by smtp.gmail.com with ESMTPSA id l53sm2478939qta.56.2017.06.20.19.48.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 19:48:50 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 20 Jun 2017 19:48:26 -0700 Message-Id: <20170621024831.26019-12-rth@twiddle.net> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170621024831.26019-1-rth@twiddle.net> References: <20170621024831.26019-1-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::242 Subject: [Qemu-devel] [PATCH 11/16] tcg: Change temp_allocate_frame arg to TCGTemp 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: aurelien@aurel32.net Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- tcg/tcg.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index c228f1e..f8d96fa 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -1869,10 +1869,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 + @@ -1925,7 +1923,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: @@ -2155,7 +2153,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)) {