From patchwork Wed Oct 25 09:34:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 117050 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp638121qgn; Wed, 25 Oct 2017 02:41:36 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TRXxgRfzPQXGdADC9E0qsOOV0mG8n/H3nxOn9uTgG0/bGjt6TeK7lyiKOaO2/bqOvVFIaL X-Received: by 10.37.252.15 with SMTP id v15mr897476ybd.518.1508924496648; Wed, 25 Oct 2017 02:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508924496; cv=none; d=google.com; s=arc-20160816; b=lbBt5KJG+KsLoycW+wWVyuueacIp+EfrW853C1XjJ+ltckrsjBOtMd9iEegNJzHgXz xuryCS9L0JO9BZOAEoY8imsPDNEcwVFe0jzIxwyBrJqn/9JkAO5wpN/SGft4lSlRtcvk X52sLGPpNTdMk4fu1H4OPRYAkP/D+iJ1YyK2qofDTUgdkQDcHHcdWGuDw21CvIw2SN1E TkSiTUQN/N5lnX00PF8ZWnDhOpFac0SW5H7+fMrW+53/AbRnP5iscjRPcsC+jTH4txhb EByGIS45OHqlFFdKBB2f29tOnV4NRlcrrgGOcZFC6PK/qETUclt7pqgH3cf5vOOlW8XZ Mbnw== 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=C/0Z29hgsCcAa9pHLOebCWIpl6VGhJuHD6TbrrPTOvM=; b=lAu62Gta8suXg9C7EBDSwUD416tgfXqu5KElZdpwMrPx+HywyOSak0F3/MI2Qv7oYe HEy6YOl/hm8ZBgfpyDhvHT9dXsFZAaNWqOVPByOjdac0W39OifPqJaaepyrpIVpz6cg4 LzNWwqHqawEM6AXK/RXryzpe/Z2KG8GXGlXarFU6g67BH+w8Ms6ahMRl8xdN08ie24z7 vESeVctvugdlVFAekz7u86bEQhuHJRG1+KGodf9/eclKjFVKAtA2reDL70MTcWs6VQcx +Klpm9X4vkTPytrYaX1MvYCQwWKN45MNazGaDHHpwwnl0ddBXnk2o1KX1/Et5NYhMqD4 X6lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ONTYUvQH; 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 c7si381432ywf.364.2017.10.25.02.41.36 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 25 Oct 2017 02:41:36 -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=ONTYUvQH; 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]:47328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7IBs-0004EZ-5a for patch@linaro.org; Wed, 25 Oct 2017 05:41:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7I6P-0008CQ-VQ for qemu-devel@nongnu.org; Wed, 25 Oct 2017 05:35:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7I6N-000842-68 for qemu-devel@nongnu.org; Wed, 25 Oct 2017 05:35:57 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:55764) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7I6M-00082Q-VC for qemu-devel@nongnu.org; Wed, 25 Oct 2017 05:35:55 -0400 Received: by mail-wm0-x243.google.com with SMTP id u138so622803wmu.4 for ; Wed, 25 Oct 2017 02:35:54 -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 :mime-version:content-transfer-encoding; bh=C/0Z29hgsCcAa9pHLOebCWIpl6VGhJuHD6TbrrPTOvM=; b=ONTYUvQHHErcHG8KVSksWMmox6bpR4CKLr+aa3p9qvptDmaMnNLROdJ3kem94Uyv/L jmvwbyJtrfJluWc3kzUTP9j1y5qQ7cCTR/g8FJhqcsPdA05rcDBUlrumI8OVBLiysPad rlpafccMnY6BnQFOyOAAfp0E/yrxjieQI5Gow= 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:mime-version:content-transfer-encoding; bh=C/0Z29hgsCcAa9pHLOebCWIpl6VGhJuHD6TbrrPTOvM=; b=HS0TZI99DBBvwinyim9sNA1XxZcFULTyfQKIf8zTdxcugfLwyBxtrmCyH8j50IWy1w vsAOPcmiq07HQHz9YRvMy8aTpl3dYnv6+yY5rClhebUUVUwK3+OcyHX2WSqfzwOWV08O 99+RufTxrIQPhScstlSRfkqsfrIlXp8CiddnsGvzeVObWwtXSuU8lvCZyu1hRTQ7pIpl Gv2Dwrd8F3vPFgzxtKU9odkY7/WxnC76ivQKt/xpqi4H+II+uZQN2nN1v/roSIL96wOX gGC/180V73ghKpS4Xdqds4dEx70U0dZGNyUwp4ydLxcKP3IbbgZ2JtmZwzQc6OVeARxX 29iQ== X-Gm-Message-State: AMCzsaVFZ1MiSgIl3/MYc58ZgTZhFKRnaYdSxYQ7RxntgnMph4E6758p qi7Se0DXLRmT/TG2cs+8ugxgxmyGyAo= X-Received: by 10.28.183.67 with SMTP id h64mr1123190wmf.76.1508924153617; Wed, 25 Oct 2017 02:35:53 -0700 (PDT) Received: from cloudburst.twiddle.net ([62.168.35.107]) by smtp.gmail.com with ESMTPSA id v23sm2751025wmh.8.2017.10.25.02.35.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Oct 2017 02:35:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 25 Oct 2017 11:34:55 +0200 Message-Id: <20171025093535.10175-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171025093535.10175-1-richard.henderson@linaro.org> References: <20171025093535.10175-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PULL 11/51] 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: peter.maydell@linaro.org, Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) -- 2.13.6 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)) {