Message ID | 20221202053958.223890-15-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp718942pvb; Thu, 1 Dec 2022 21:52:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf7s1RhjUAJYM89xI9K51J0Pc0lXW2xp0aMQuLEC7V2M/FxdMJkzWZN9QHG+lE67wKK9pL00 X-Received: by 2002:a05:620a:13ac:b0:6fc:a92f:1fcf with SMTP id m12-20020a05620a13ac00b006fca92f1fcfmr4334421qki.662.1669960326458; Thu, 01 Dec 2022 21:52:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669960326; cv=none; d=google.com; s=arc-20160816; b=wGWsXAdoKq8xt3nlbn3QS4+OfvLbLXDMBtPstWTYt9eVvTeSPp0TDDVfciIhuhCx37 5cYfS514kXB5Gg6IwOTdIbazOFT0dnobLOYwZ0xewlCb+hDQOJPIZGg4zb89nWQ52DGh H/2r2rxoKgWIkT5pvWg1J2l5NOo1RKXZOfPucZr9PZZVvPeR03fos/fWx/E6xH5/Nohu kr8Hb0X1EkoT7BP9k1yvurYVZgsyBoUUzjnhF4vPXH+BSmh2vwLFIhMTS9p96NOqH6+x pAfzwLymQ6wsvLdEPXcUtqvz3Bh4n2OxcgxpJdzX0JLnUHWfOwV+0g1k0E/Vn8iuIhfw l6rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8dgmD8yUJnIF7Ep3YQaKEZ2wvp15A3Cnw31rhHlanTU=; b=xWVyuKduc7xx+3/kznaeed1bTS9uRyGEjWbKNxzvyT0YK9ccgFwE1qMu5Kr2zjpiTy mIe233ylrKW+bbNHrdKfN140V+hydiDUqKeOyoQLZW1IzzIPE/tcChii+81NZ5PnkbdX FgmwBN90xVKlKcGhnZVuE0HNFTKDsQyQJQe2uhy7sT2ajIqJVEYlb3WK9WNN2fSmttt1 ECdfgx7GXuqz0sJ5ahhIA8deqv+Ztza0RnLD9Wef66bni57fp0BG1gAQ6wbOFf0Q+euH sfJDYcOXcADYIYk7/IEiENlqmdnY8cAg6Kgrl8Nz/2RjPz75YxDMFEckt5RzpJ8lfHxN b5FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kxvjIcjW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (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. [209.51.188.17]) by mx.google.com with ESMTPS id j16-20020a05620a289000b006bc4c8dc545si3565500qkp.373.2022.12.01.21.52.06 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Dec 2022 21:52:06 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kxvjIcjW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1p0ymZ-0002dE-1g; Fri, 02 Dec 2022 00:40:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1p0ymX-0002cI-EO for qemu-devel@nongnu.org; Fri, 02 Dec 2022 00:40:17 -0500 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1p0ymV-0003MF-DH for qemu-devel@nongnu.org; Fri, 02 Dec 2022 00:40:17 -0500 Received: by mail-pj1-x102c.google.com with SMTP id fa4-20020a17090af0c400b002198d1328a0so514053pjb.0 for <qemu-devel@nongnu.org>; Thu, 01 Dec 2022 21:40:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8dgmD8yUJnIF7Ep3YQaKEZ2wvp15A3Cnw31rhHlanTU=; b=kxvjIcjW+JGLXHvM1GRj9BUvAr2B0yBON0lzJC6rbS/Sg6UdGr60kQvbVMKISzjQPd uRLTtoMOr2kyIrS20FeCjjdFunnFhDoqxhPOzNmhgnBBgMVRNVFPcLrE8Xs1MpR2KEGq wTgwIawn1zw5+BKef804MH8vL4c+Tq9d1Qci4aHWxH7HEeiPWVqajDqPq77zWmJ4QRAv aSwElUMdlnu9oreGuP29S6xSn3mf9EOHuuY1abnXfr3zkQolPHIl9JPUdj6KDN4Dhp0h 9Ff9tcMDjGy2SBw/ze/ZWS9dWTSfI2Q9MeWrJlNPqAofhA0DJ9Dm6E4FK45/yvmevOoK nKQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8dgmD8yUJnIF7Ep3YQaKEZ2wvp15A3Cnw31rhHlanTU=; b=JO1wInf/C0RHdtQzm8VEZh2WMGBmk1FMKuq7huvuEdYV7IAtlbqtzGGGLByoZWY5wc TValRmhy5x25adVpqBBscHXMdHL+WCW1fDkOJksp3DWX/Y0fuEIVBwWP/Td6ET+nFT6e kmwOfeEMPb5kV4JJGnxoRwE/7V3OkLMvojHwkwn0zKtHi/JXVq/5K1lJwqVARUtmBpmJ 6Ex3olv1aDTB3Z5ONJMFg8nZkG7diSzo/lXzjb7Zfsu7mQrJGNRUVSCSqLRrBX0mgbuS M7BtsaLUO1PVrRD7hknm+wUyHFsojXyPXiHly0slAGJ6FAQTQoxmKD9X3Q2PF1odNknF HrOw== X-Gm-Message-State: ANoB5pklVw40HCr5c6jvS6FHBMLpxRe8YcAiK24VruJ3yuLmr8kLFuBq x67Xmu4fsUWW2mXveNPq2LObrDifMld0YzKD X-Received: by 2002:a17:903:3302:b0:189:9590:4f98 with SMTP id jk2-20020a170903330200b0018995904f98mr19976056plb.148.1669959614175; Thu, 01 Dec 2022 21:40:14 -0800 (PST) Received: from stoup.. ([2602:47:d48a:1201:e3cc:2e37:17d4:f1d5]) by smtp.gmail.com with ESMTPSA id d12-20020a170903230c00b00186f0f59c85sm4637075plh.235.2022.12.01.21.40.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 21:40:13 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PATCH v3 14/34] tcg: Add temp_subindex to TCGTemp Date: Thu, 1 Dec 2022 21:39:38 -0800 Message-Id: <20221202053958.223890-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221202053958.223890-1-richard.henderson@linaro.org> References: <20221202053958.223890-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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: <https://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> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tcg misc patches
|
expand
|
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index d207bc47be..afa18986b1 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -456,6 +456,7 @@ typedef struct TCGTemp { unsigned int mem_coherent:1; unsigned int mem_allocated:1; unsigned int temp_allocated:1; + unsigned int temp_subindex:1; int64_t val; struct TCGTemp *mem_base; diff --git a/tcg/tcg.c b/tcg/tcg.c index 98d51e538c..0f58013a5a 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -928,6 +928,7 @@ TCGTemp *tcg_global_mem_new_internal(TCGType type, TCGv_ptr base, ts2->mem_allocated = 1; ts2->mem_base = base_ts; ts2->mem_offset = offset + (1 - bigendian) * 4; + ts2->temp_subindex = 1; pstrcpy(buf, sizeof(buf), name); pstrcat(buf, sizeof(buf), "_1"); ts2->name = strdup(buf); @@ -974,6 +975,7 @@ TCGTemp *tcg_temp_new_internal(TCGType type, bool temp_local) ts2->base_type = TCG_TYPE_I64; ts2->type = TCG_TYPE_I32; ts2->temp_allocated = 1; + ts2->temp_subindex = 1; ts2->kind = kind; } else { ts->base_type = type; @@ -1092,6 +1094,7 @@ TCGTemp *tcg_constant_internal(TCGType type, int64_t val) ts2->type = TCG_TYPE_I32; ts2->kind = TEMP_CONST; ts2->temp_allocated = 1; + ts2->temp_subindex = 1; ts2->val = val >> 32; } else { ts->base_type = type;