Received: from eggs.gnu.org ([2001:4830:134:3::10]:36740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNcCq-0001A2-Ef for qemu-devel@nongnu.org; Tue, 29 May 2018 06:50:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNcCm-0003gp-LY for qemu-devel@nongnu.org; Tue, 29 May 2018 06:50:20 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:39272) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNcCm-0003gb-FB for qemu-devel@nongnu.org; Tue, 29 May 2018 06:50:16 -0400 Received: by mail-wm0-x242.google.com with SMTP id f8-v6so39337513wmc.4 for ; Tue, 29 May 2018 03:50:16 -0700 (PDT) From: "Edgar E. Iglesias" Date: Tue, 29 May 2018 12:49:34 +0200 Message-Id: <20180529105011.1914-2-edgar.iglesias@gmail.com> In-Reply-To: <20180529105011.1914-1-edgar.iglesias@gmail.com> References: <20180529105011.1914-1-edgar.iglesias@gmail.com> Subject: [Qemu-devel] [PULL v1 01/38] target-microblaze: dec_load: Use bool instead of unsigned int List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, edgar.iglesias@xilinx.com From: "Edgar E. Iglesias" Use bool instead of unsigned int to represent flags. No functional change. Reviewed-by: Alistair Francis Reviewed-by: Richard Henderson Signed-off-by: Edgar E. Iglesias --- target/microblaze/translate.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 0872dc9ded..a8a5eaebec 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -897,14 +897,15 @@ static inline TCGv *compute_ldst_addr(DisasContext *dc, TCGv *t) static void dec_load(DisasContext *dc) { TCGv t, v, *addr; - unsigned int size, rev = 0, ex = 0; + unsigned int size; + bool rev = false, ex = false; TCGMemOp mop; mop = dc->opcode & 3; size = 1 << mop; if (!dc->type_b) { - rev = (dc->ir >> 9) & 1; - ex = (dc->ir >> 10) & 1; + rev = extract32(dc->ir, 9, 1); + ex = extract32(dc->ir, 10, 1); } mop |= MO_TE; if (rev) { -- 2.14.1