From nobody Wed Nov 5 09:24:05 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499587448598827.0700669931722; Sun, 9 Jul 2017 01:04:08 -0700 (PDT) Received: from localhost ([::1]:35309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dU7CJ-0006iO-Bv for importer@patchew.org; Sun, 09 Jul 2017 04:04:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dU6zL-0004RG-5h for qemu-devel@nongnu.org; Sun, 09 Jul 2017 03:50:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dU6zE-00030n-PF for qemu-devel@nongnu.org; Sun, 09 Jul 2017 03:50:43 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:43989) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dU6zE-0002z5-5C for qemu-devel@nongnu.org; Sun, 09 Jul 2017 03:50:36 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 341B5208D9; Sun, 9 Jul 2017 03:50:33 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Sun, 09 Jul 2017 03:50:33 -0400 Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id EE33A7E70C; Sun, 9 Jul 2017 03:50:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=khi Krm6R9RYFKJfVzxXn6Rgqt5kb0p2LJNo2COELqkM=; b=Jk1vEjTjRMzFtmYFvzq gEs3tG7aPuCSA+hdtxWAONQWKMtaShnHoZiyp5EVL/m7j3tiPVvcKlQy7TJB8eK2 9dSDfm/Or/t1S7XacYM1hP0K+5Ue14Chh1ZyA/nrs6gaCB8PgLlV08ta+o0dhBh3 miSeca2okGiwu68rrqZiNfcM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=khiKrm6R9RYFKJfVzxXn6Rgqt5kb0p2LJNo2COELq kM=; b=R4KlGbN0UTRTZVV7SIpjfjVdxmOGHozPjfJ+VnEe4ZghZniyIaWHoD691 81wZEWuwj4OjpMHA3TYtxCx/Cqk8DAX8EAaEYXoJrR0460udSy3cDiLFjYK88GxS pYx8v59ASCmTsAOTYiMuxnGf78gLFmKiOUKS/5qC4U2n3fB2KIgBxJoBzWHkRCHH SmiXR/2+1w/WNOg01uzYni5EYTA+p159UtjnrvCmEEbh6SMOOZIUyaX7wF1Ltm39 8/D60Doi8Q0JPTKPmfBqs9I6sSoewfshYS2Fhoqh2o1u6RjlhNaZCmZOwWwWoMkU tiCyNZeYah1lrwDYFiOysFWXBWtlg== X-ME-Sender: X-Sasl-enc: UOkJ/IpxMothd4rhhnXE+ZHP7/4tip83VkDN94hCA78s 1499586632 From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Sun, 9 Jul 2017 03:50:01 -0400 Message-Id: <1499586614-20507-10-git-send-email-cota@braap.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1499586614-20507-1-git-send-email-cota@braap.org> References: <1499586614-20507-1-git-send-email-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.27 Subject: [Qemu-devel] [PATCH 09/22] exec-all: shrink tb->invalid to uint8_t 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: Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" To avoid wasting a byte. I don't have any use in mind for this byte, but I think it's good to leave this byte explicitly free for future use. See this discussion for how the u16 came to be: https://lists.gnu.org/archive/html/qemu-devel/2016-07/msg04564.html We could use a bool but in some systems that would take > 1 byte. Signed-off-by: Emilio G. Cota --- include/exec/exec-all.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 8326e7d..a388756 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -327,7 +327,7 @@ struct TranslationBlock { #define CF_USE_ICOUNT 0x20000 #define CF_IGNORE_ICOUNT 0x40000 /* Do not generate icount code */ =20 - uint16_t invalid; + uint8_t invalid; =20 void *tc_ptr; /* pointer to the translated code */ uint8_t *tc_search; /* pointer to search data */ --=20 2.7.4