From patchwork Tue Jul 18 06:09:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 789926 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=208.118.235.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="JvYx5gTT"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xBVgD4HP5z9s3w for ; Tue, 18 Jul 2017 16:31:36 +1000 (AEST) Received: from localhost ([::1]:54305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXM2g-00032R-Bz for incoming@patchwork.ozlabs.org; Tue, 18 Jul 2017 02:31:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXLss-00024Y-Jn for qemu-devel@nongnu.org; Tue, 18 Jul 2017 02:21:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXLsr-0001H7-UA for qemu-devel@nongnu.org; Tue, 18 Jul 2017 02:21:26 -0400 Received: from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]:36387) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXLsn-00016t-Mt; Tue, 18 Jul 2017 02:21:21 -0400 Received: by mail-qk0-x244.google.com with SMTP id d136so1326928qkg.3; Mon, 17 Jul 2017 23:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Lq2u0t/8zST3wOUNainN0Zty5exQjk2xsW18OEKJWu8=; b=JvYx5gTTJ7QlNC9ePWEbcs06FvCBMjsRi7vi7T4cL6F1QiSc5c6AWgK8WI/XaEVOhV UU74uWUZ7MLwHcARPBrUGOqtoXpo3oQxPqLqstw8iSm80FCkpBnUDTwB7kDS4HDouQMC 1rVFaiWXHlb9TY11gCmSzH+cHvHi/67tn++mbnYLTsh6WxKN8FB1hMinmjUiOnS1RBxx iBnhKl6tzrxjIvajxJtAwsuyN2Kdf12E0V/dxvUOdgV4+W/p+roJqocqQ/4iTJzBJS+5 62UOQNcMlumy/skOg727M0RHwVyx+rstg6y6FSDmeYv8eeQBfpgrH3DXVV3QBux6aMhY qP3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Lq2u0t/8zST3wOUNainN0Zty5exQjk2xsW18OEKJWu8=; b=qKY6rKiQH+6lFH2aFUEDsaNB7JzHpFUmCrrYhppeMw8r3nVHQ1n5AkmQagDBQHbdL3 eAqbxFqKIiZFs/FnmtN/08Q/Yqhkmef0FTmXZxvPRDCFbuXJhDj3N7CvhF+YqLUhLGJb y2cLAV+b1rmbEV++QHrPY3FDFPMbCZWmSFLYl/Eu60zXRBdCVfsYJZEVe58ebAc93vxc e7tiR2pXLtlKDTXn7c6orXqMeW+O4ObCumiK/PbxjzQZbUBxOo8RSLyvK2Fx9SckbDnG R1cUwGMCGh9RAZtDGYw5agM1W2GqNpqiLUOqEFizydf2xwxcbNGQALExN+M5zt1qsE9Y mvdA== X-Gm-Message-State: AIVw112faclRa5+qMZTeI0JXYwetYRE6dN1AityNRbFZc4OAo0rxao/C oku7Nh3JCUdiJDV8uQkEYA== X-Received: by 10.55.140.71 with SMTP id o68mr131495qkd.18.1500358881145; Mon, 17 Jul 2017 23:21:21 -0700 (PDT) Received: from yoga.offpageads.com ([138.117.48.223]) by smtp.gmail.com with ESMTPSA id l31sm1099862qtc.64.2017.07.17.23.21.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 23:21:20 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org, Richard Henderson , Peter Maydell , Paolo Bonzini , Thomas Huth Date: Tue, 18 Jul 2017 03:09:55 -0300 Message-Id: <20170718061005.29518-20-f4bug@amsat.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170718061005.29518-1-f4bug@amsat.org> References: <20170718061005.29518-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::244 Subject: [Qemu-devel] [PATCH 19/29] disas: use QEMU_IS_ALIGNED macro 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: Michael Tokarev , Peter Crosthwaite , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Marc-André Lureau --- There is no entry for this file in MAINTAINERS, should it go under TCG/Overall? disas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disas.c b/disas.c index d335c55bbf..8b59448286 100644 --- a/disas.c +++ b/disas.c @@ -151,7 +151,7 @@ static int print_insn_objdump(bfd_vma pc, disassemble_info *info, info->read_memory_func(pc, buf, n, info); for (i = 0; i < n; ++i) { - if (i % 32 == 0) { + if (QEMU_IS_ALIGNED(i, 32)) { info->fprintf_func(info->stream, "\n%s: ", prefix); } info->fprintf_func(info->stream, "%02x", buf[i]);