From patchwork Thu Jun 14 19:31:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 929679 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="FpYk/q4p"; dkim-atps=neutral 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 416DZW5SYqz9s01 for ; Fri, 15 Jun 2018 05:43:47 +1000 (AEST) Received: from localhost ([::1]:42387 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTY9p-0007dw-Ak for incoming@patchwork.ozlabs.org; Thu, 14 Jun 2018 15:43:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTXye-00073A-IK for qemu-devel@nongnu.org; Thu, 14 Jun 2018 15:32:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTXyZ-0005nr-Sz for qemu-devel@nongnu.org; Thu, 14 Jun 2018 15:32:12 -0400 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]:46353) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTXyZ-0005nW-Lq for qemu-devel@nongnu.org; Thu, 14 Jun 2018 15:32:07 -0400 Received: by mail-pf0-x242.google.com with SMTP id q1-v6so3709732pff.13 for ; Thu, 14 Jun 2018 12:32:07 -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=PUl84RGj2OqEjV3sjRt0a3dQMiShyLF4sGf17shcl8g=; b=FpYk/q4pUXIjZ3I4q6+wgyEqt49MjHvh+jJL6kcJIUBKuTaXoJnB7rBdM28iOkqyZZ DzHPyagl57zebOSjVBb6Vyh/aefUUWUZgsA1tUFuu/E65sC/JGcutflz4Lj5Il26pbGQ Bodq5AeYSF2C0uBSsrx3WrBUYJLofr+LXxYsM= 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=PUl84RGj2OqEjV3sjRt0a3dQMiShyLF4sGf17shcl8g=; b=iFKLvFa+boeGYL1JaNSnju6FqeiWea1EvebAzEV2sBgB8lVFPGD+DZ3Ocd3TzWjsIK 3ZqZBRsNkdPkadHHAm0Qe7ZnHbY4LTUyaYymEU+mTjt0QLZvOHyqn2FcBQCqg0JTPqGI zI3t/j7TDF1Tr8Nt4ImNYWClvOP5NJxSK3hUQ6dcEYnwz6h9DtUBv+zSznTWwGIAPZcW nmex7jwlcQrwQNtl0LEKbg8+g5FfW/2RKfsniUzLtr6fOUmvAvJPdfGipLTZHuZaBH8y f9G5nBnpRrsOuEhHccKdZpH3JNRL2PAN6drct/0jNxb6EivbfnPEoWvtP5f5u9O9pJCy ZlgA== X-Gm-Message-State: APt69E3sJNVIklw9z3+4phHtcySQnyBOC9tVSqWmSyk0voQPvW9/1Qzn oO9A1/Eo3h+2oS6fNiXGqhLTr1e11Wk= X-Google-Smtp-Source: ADUXVKL2xSgY44jE7A6UeD12UKTY3f4lv+3IObDGuTIfwp6H8RfyslQH05mWqZqOfmqu4hodFkByyA== X-Received: by 2002:a62:3d05:: with SMTP id k5-v6mr10792186pfa.122.1529004726530; Thu, 14 Jun 2018 12:32:06 -0700 (PDT) Received: from cloudburst.twiddle.net (rrcs-173-198-77-219.west.biz.rr.com. [173.198.77.219]) by smtp.gmail.com with ESMTPSA id x24-v6sm11532184pfj.104.2018.06.14.12.32.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Jun 2018 12:32:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 14 Jun 2018 09:31:37 -1000 Message-Id: <20180614193147.29680-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180614193147.29680-1-richard.henderson@linaro.org> References: <20180614193147.29680-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: 2607:f8b0:400e:c00::242 Subject: [Qemu-devel] [PULL 08/18] translate-all: remove hole in PageDesc 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, "Emilio G. Cota" Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: "Emilio G. Cota" Groundwork for supporting parallel TCG generation. Move the hole to the end of the struct, so that a u32 field can be added there without bloating the struct. Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Signed-off-by: Emilio G. Cota Signed-off-by: Richard Henderson --- accel/tcg/translate-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index 52273e5846..b9c36a3e45 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -107,8 +107,8 @@ typedef struct PageDesc { #ifdef CONFIG_SOFTMMU /* in order to optimize self modifying code, we count the number of lookups we do to a given page to use a bitmap */ - unsigned int code_write_count; unsigned long *code_bitmap; + unsigned int code_write_count; #else unsigned long flags; #endif