From nobody Wed Feb 11 05:35:40 2026 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; dkim=fail; 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 150035931668035.837382794973564; Mon, 17 Jul 2017 23:28:36 -0700 (PDT) Received: from localhost ([::1]:54287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXLzm-0008Tp-S2 for importer@patchew.org; Tue, 18 Jul 2017 02:28:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXLsd-0001oi-9Y for qemu-devel@nongnu.org; Tue, 18 Jul 2017 02:21:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXLsc-0000xg-Ea for qemu-devel@nongnu.org; Tue, 18 Jul 2017 02:21:11 -0400 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:35766) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXLsZ-0000vR-Vy; Tue, 18 Jul 2017 02:21:08 -0400 Received: by mail-qt0-x242.google.com with SMTP id p25so253587qtp.2; Mon, 17 Jul 2017 23:21:07 -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.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 23:21:06 -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=Os8K3RuD0Sg/Km1YQjYsFxtDsV1Bn2R66uZ3QaG3nR0=; b=psNGYH43Lsf10AlzbxZE4PUI7jVRlYFL3qb+MtVgZ1vurhGdLahuEsWb642vVvaslW 5jsh4S0ohQMw6IEwNI7aM5L/joa64X+b4Zn3GZAuV94bRkpoW9Z89aDe0bAXTSxqq2yI xdrx0n48SuG/y3PWkuxZU6WpXw0krKcAUAY+hmAoZv5quyw99Nbo/pK5Kww0ZQmcUoBf /vmc51d+US7DXw7mv7RD4Lp+hi6c/VMOGAyCofPN4cnVM2P5EClgaGjTg8cOMyZwJKAw cQQtb3corYZlVYe1i41BnNYxHuhvAVKbcDEOf3Gz6GeMk2MQnod+3vB7DVGM2ZGSO5Z1 g1Hg== 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=Os8K3RuD0Sg/Km1YQjYsFxtDsV1Bn2R66uZ3QaG3nR0=; b=jDZgsgtY7gSI5C0BUw42an9spvGFbdXMvOVHSmDKgnkxSvESUKOOL8YlEOLj/6KN7s +ka+tF56LEi9+Q6kdtz5SupFzIbtHN+R3czSl6bLHd3jGEF/m6hnJNZQVOhZ775i9ldf sD0C6LAAG45Baon6TKkedC7H28nBpdmolQ57c3NBagbx90UuN+vHPuPaPLHwnGeozCkD /YJj9BopXoxr1X3W+FPaXl/WwXUs5ifeHZw8Pu/FePmj0U4be1GqkFKioypnjLa+y7qA cHYQQoYrD+/ElpxPm7IdnT3wD3DDW1PAWBVbLemu5889XeCeiO9viGmAn8pDaC1iu7X+ GeNg== X-Gm-Message-State: AIVw113KHvxd5c1l0yyQRkyxot5VjX5bbFXIcHDdNuEnmoHrWgJRh76l 9iUvoIi/FS00aFXzSzSSsQ== X-Received: by 10.237.51.70 with SMTP id u64mr13773qtd.211.1500358867342; Mon, 17 Jul 2017 23:21:07 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org, "Edgar E. Iglesias" Date: Tue, 18 Jul 2017 03:09:50 -0300 Message-Id: <20170718061005.29518-15-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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::242 Subject: [Qemu-devel] [PATCH 14/29] cris: 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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.co= cci Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/cris/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/cris/translate.c b/target/cris/translate.c index 0ee05ca02d..46afdff145 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -3332,14 +3332,14 @@ void cris_cpu_dump_state(CPUState *cs, FILE *f, fpr= intf_function cpu_fprintf, =20 for (i =3D 0; i < 16; i++) { cpu_fprintf(f, "%s=3D%8.8x ", regnames[i], env->regs[i]); - if ((i + 1) % 4 =3D=3D 0) { + if (QEMU_IS_ALIGNED(i + 1, 4)) { cpu_fprintf(f, "\n"); } } cpu_fprintf(f, "\nspecial regs:\n"); for (i =3D 0; i < 16; i++) { cpu_fprintf(f, "%s=3D%8.8x ", pregnames[i], env->pregs[i]); - if ((i + 1) % 4 =3D=3D 0) { + if (QEMU_IS_ALIGNED(i + 1, 4)) { cpu_fprintf(f, "\n"); } } @@ -3350,7 +3350,7 @@ void cris_cpu_dump_state(CPUState *cs, FILE *f, fprin= tf_function cpu_fprintf, for (i =3D 0; i < 16; i++) { cpu_fprintf(f, "s%2.2d=3D%8.8x ", i, env->sregs[srs][i]); - if ((i + 1) % 4 =3D=3D 0) { + if (QEMU_IS_ALIGNED(i + 1, 4)) { cpu_fprintf(f, "\n"); } } --=20 2.13.2