From patchwork Tue Sep 1 14:07:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 1355028 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bgppx0y5Tz9sVZ for ; Wed, 2 Sep 2020 00:09:29 +1000 (AEST) Received: from localhost ([::1]:54166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kD6yV-0003W0-2p for incoming@patchwork.ozlabs.org; Tue, 01 Sep 2020 10:09:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kD6xO-0002aV-HV; Tue, 01 Sep 2020 10:08:18 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:60855) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kD6xJ-0003KL-6P; Tue, 01 Sep 2020 10:08:18 -0400 Received: from localhost.localdomain ([82.252.135.186]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mwwhx-1kWhB60b9P-00yN0Y; Tue, 01 Sep 2020 16:08:07 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 01/44] hw/register: Document register_init_block @memory_size Date: Tue, 1 Sep 2020 16:07:20 +0200 Message-Id: <20200901140803.888852-2-laurent@vivier.eu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200901140803.888852-1-laurent@vivier.eu> References: <20200901140803.888852-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:8bPLAURVEaw24uNIxjnDnEMeRGpp+71eXkutyufMLXcBTz61pZD Zsupbjl+GyhN5taXWYddh3xmOxCZiHGlvixPO3J9hc6H5trWMm8/gF7RCJ8EaOUhI5uGRhu Nf8Kpv5uQWBIM/QidHGtsoOkbvJvr6F3jrn9T8bG+wPpLwzD8hlgD8fyYFJYqTzJW53slV4 ZrQ7u5rwaFMkkQzi+mhWg== X-UI-Out-Filterresults: notjunk:1;V03:K0:6yH3oOnANKo=:QYcnEQLvzXxnPS4jyuek2y eit0oOs+cqrbApyqIrTHrsGdIwW9degKpQ/s+b9g6ASMeuBZPC0RTTw6U2M0REakn1O7ebmhT ePX0ON+e3CVAa/80XHq3doSSO9c2jHI8N0T10XMgS8QGfyPThQACO5L7A5sUOqEBEmqlH52Ut 7URYzS234ZRaC8ogeXnPGzJO8RNjZ5nEI3IXu0IajH3b1ovrzpQB+HirpfhplvQ1LIpwrgyQH KQE7FB2loYsPk4g5PIdXx7Z8utGHoxW4VLa9WcDZaRw0PSj2P+rIfQpxqxVwgauk52c2RF8B+ 72LszN6HC2nsQ/NMLPOxbxqFtA4v9hvULGqOe+Px6b5WEjQFEqZ5i78i2j2DTCzDOehB3bMqp sevuvt3uoAqlSj0JOYZ6It+4m1sx1TUuPfG6+mQdUvI0TmQHyV5mTGp8FV3Ed90O5yK9UspFl OcCy4IQPBc2pUsK/5MOnv6uXVi9sSeV7mvIF8jU10sc6m6wBPAl8b+c0o7SPV5nhFO5W8Jz9+ GZml2w9sCNwqVNu+m9sZGTGGMjUTcluhCbr1BbgHMM69U8PBfm1gfdaDUPpY2qmRsF87pmkJr 5FyI72mOq/nXOilU4fKdxvyvYgEak4DQUL5wGlT/ZBhElDhyljZpBGXlwda/c93koDebyyukL eALGtbcSt5zljWAoDEK4N0g1ogHpaTuztw5UQ9bcnVfoJ/MvOAFByxUR9lKcArGtV/Og4t3na QJ1ZDWQLwAeBiZuTRMpgropAI6lFkKsn+PE6LRqmIw5flFGv1ZgbWPl7jr8bUCQU0yoSyGxQS NRPljbG1vStKFwQEtpX4jwTCUm1FHYrsbX3sn0xXwppMYXjkdIyhdRPE6ishhsMS2C73Gpo Received-SPF: none client-ip=212.227.17.10; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/01 10:08:11 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Alistair Francis , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Document the 'memory_size' argument of register_init_block(). Fixes: a74229597e ("register: Add block initialise helper") Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Reviewed-by: Laurent Vivier Message-Id: <20200707062308.4531-1-f4bug@amsat.org> Signed-off-by: Laurent Vivier --- include/hw/register.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/hw/register.h b/include/hw/register.h index 5d2c565ae02e..fdac5e69b545 100644 --- a/include/hw/register.h +++ b/include/hw/register.h @@ -181,6 +181,7 @@ uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size); * @data: Array to use for register data, must already be allocated * @ops: Memory region ops to access registers. * @debug enabled: turn on/off verbose debug information + * @memory_size: Size of the memory region * returns: A structure containing all of the registers and an initialized * memory region (r_array->mem) the caller should add to a container. */ From patchwork Tue Sep 1 14:09:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 1355030 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bgprd6Ytrz9sWF for ; Wed, 2 Sep 2020 00:10:57 +1000 (AEST) Received: from localhost ([::1]:59398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kD6zv-0005ut-09 for incoming@patchwork.ozlabs.org; Tue, 01 Sep 2020 10:10:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kD6zC-00056h-TO; Tue, 01 Sep 2020 10:10:10 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:51235) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kD6zA-0003jK-U6; Tue, 01 Sep 2020 10:10:10 -0400 Received: from localhost.localdomain ([82.252.135.186]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MHG4W-1kQKNr1Hvc-00DCqj; Tue, 01 Sep 2020 16:09:59 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 03/44] target/ppc: Remove superfluous breaks Date: Tue, 1 Sep 2020 16:09:13 +0200 Message-Id: <20200901140954.889743-4-laurent@vivier.eu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200901140954.889743-1-laurent@vivier.eu> References: <20200901140954.889743-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:ZbH+rJepN79lncnQpsYNFzMEuLuiiZ2geGMjuq8OFinTVqXaKFJ JI4rdrKSp+16cG4AV/IExbzfxOEaEIPg3tIcvpqBGXBLcMkigX9WmwRAVRKn9yAtth/9ANJ ZOoGNG5bEc7H8XjJ81PbhDqxBrzoKsGFDzaPY2zQoGKv1p90RqR9uFPl9v0ACs5NAWrUMdg 01gunrxb4PU5mAe8o1ftQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:dlKzjC/Y5v4=:skUHDxNZh9Yn9b3Sm+TQW0 eziOsqP4HfKhN9CW2JgtTwG76YbWhDPQfaqxcouY1TtGatMLkoDbWm+qW/8xhUCA7moKwDk8y 4FBGlrKIarPmTSYvEup7ntmN/UU80B7ev0HVgpJu3nnkCtJddK/RHatwIMJ9IZqYmOtRe87W+ Lb44CnbuZ2Ta/KM7KLi/kl4EevPE6/cu9oQmeZtWktyIgX+oAUcmjyDOR2LtMEw09nCVlvCpN Om1A8CNnVNx2kuPlTSDbW4t9yUrVntfStGu8aO9EsjZEoBRFiSuAQlmkw51pbdspHUFSIoucl BHVkko1ZnbDUS8x6QZZe1Qg7AlAwUOduZmhaAckPh836Xzcs/bGGrhNtLHKabqMvjOzewK/5y RUX1A/5vdViXf+iD9WP14kMSr/K4al6I8am1UkQtYkYRR4PgCDtVRoqE/b58phPuAFUyxNEsJ YCAoglETDrRLKCSMAQD3XoS10t0Zd/KuuwaynD4j6V3Xp56PtXDy/PQJnZErFriMCOV1/45cn 5Ei+wTcbTZc+VWtKr6IiHLFTBrcTHJ+S56kPHv1GOZ7ALWUvV+AHyqdE3gfPx116seMqOnoHb 0Te80v+jLLvkdEEAlbm/5UyAFgmuDekKHGD/58lkhBQP8PBi+mdUpAqGfG5bRNCbksVfIvYyt nCml5axXHmhD/TNbfLf2VQAlCpG4iLoVSXOvuUpIYpCwnEVvRc0qZpaKZGX3KorPy9B3obF2b uDnKiNdHV/AypImMVnW3XepXCon1zrU/yBPDOsZNZ2uNp1rtxt+hyHtLfEagIBxjM+z0EdLZU F/u5ZGMwFNEn70+wFKR+k5k3LHdFIRZQcVJRhXu6W8+s0zJ3Uo2iF1p0fhtak6R95wurQ64 Received-SPF: none client-ip=212.227.126.135; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/01 10:10:07 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yi Wang , Thomas Huth , qemu-trivial@nongnu.org, Laurent Vivier , =?utf-8?q?Phil?= =?utf-8?q?ippe_Mathieu-Daud=C3=A9?= , Liao Pingfang Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Message-Id: <1594631025-36219-1-git-send-email-wang.yi59@zte.com.cn> Signed-off-by: Laurent Vivier --- target/ppc/misc_helper.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/target/ppc/misc_helper.c b/target/ppc/misc_helper.c index 55b68d1246e4..e43a3b468667 100644 --- a/target/ppc/misc_helper.c +++ b/target/ppc/misc_helper.c @@ -234,25 +234,20 @@ target_ulong helper_clcs(CPUPPCState *env, uint32_t arg) case 0x0CUL: /* Instruction cache line size */ return env->icache_line_size; - break; case 0x0DUL: /* Data cache line size */ return env->dcache_line_size; - break; case 0x0EUL: /* Minimum cache line size */ return (env->icache_line_size < env->dcache_line_size) ? env->icache_line_size : env->dcache_line_size; - break; case 0x0FUL: /* Maximum cache line size */ return (env->icache_line_size > env->dcache_line_size) ? env->icache_line_size : env->dcache_line_size; - break; default: /* Undefined */ return 0; - break; } }