Message ID | 20180508173152.29327-4-edgar.iglesias@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jLggHtXe"; 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 40gRV60BdGz9s0W for <incoming@patchwork.ozlabs.org>; Wed, 9 May 2018 03:35:58 +1000 (AEST) Received: from localhost ([::1]:52565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1fG6Wp-0002BL-Je for incoming@patchwork.ozlabs.org; Tue, 08 May 2018 13:35:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <edgar.iglesias@gmail.com>) id 1fG6T3-00082m-NT for qemu-devel@nongnu.org; Tue, 08 May 2018 13:32:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <edgar.iglesias@gmail.com>) id 1fG6T3-0005Go-19 for qemu-devel@nongnu.org; Tue, 08 May 2018 13:32:01 -0400 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]:39201) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <edgar.iglesias@gmail.com>) id 1fG6T2-0005GI-Pa for qemu-devel@nongnu.org; Tue, 08 May 2018 13:32:00 -0400 Received: by mail-lf0-x242.google.com with SMTP id j193-v6so47051465lfg.6 for <qemu-devel@nongnu.org>; Tue, 08 May 2018 10:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ed0oBkfMX5QBYAz+dXPC0kFodAYeN304698wzLrrAPY=; b=jLggHtXeAtg0MwkycCu4SL9lxGg0paRRPow/Z6NddnOmYwdellpbYDzGfvPJULzc60 KwgUaoWP1pisy6kDbEixDpTLH+yqve/KmGnTI/XGTmgCpdWBjsTf8U3DY6Pzd3jF63vA Wg5UDnxOTTZi32FEEyI5s7XC6Buog+DXR+DwiHokoykDYQN+OoEPWwYk3LnydXP8wSLU PNtJ+GVTwHPFW8mhDQtd4k/w2y/VEDVUgCHQ6sQ6ErEgE7nX5e/N48gSvapjd2flkDrA x4tfLxnSMK/vAz+toTJDwyrBvv3Jza8MVHCn9b82OcHODglhDEXXCY3ySUKY7PiE8u78 nVow== 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; bh=Ed0oBkfMX5QBYAz+dXPC0kFodAYeN304698wzLrrAPY=; b=TzKKQBArzeJodzCPk+plY7B16M9j3Q83phMYA3bpajWsIlCUvB7BxfgVd5l7JTULdZ +fzhj61QX4iT6ntrKynMiQqV2O/FdCGoR6ybfrXxfazsE60fj5hk/vT6yDFz7BFl9PjU kvYyg9w6Hhi2kbQ6QmFY/devqOrl6cqDW64kwL9mQgAoWE5rf9focnUDs4g1Wk5YVCYy 7OiEPOzMJu0aWwa2fE2gI9jaaZl2nnVNZjJCIflYBlLius2xmCVjrOwFBIfHo6HhUhoV pUcoyBt9O3jipSH6RVFHd0leRFSY2LFZBKpVS1IGxKtx2qpIhUlTGlMYPwRZlunq9Qfp edXQ== X-Gm-Message-State: ALQs6tCw4SZYxOYoOutR/hWHvIyL8JSGDlUXkJOPWxNzkm2OQd169Axz unMvsCYO+kQXic2dX/mFKElKqA== X-Google-Smtp-Source: AB8JxZp5IQRG/mqFn4yw+72TuJP0WxGCAka5zcPkEmNT4cj+1ukTXdzBV4VvSAfw8ARD4CfIa4Gkcg== X-Received: by 2002:a2e:9c90:: with SMTP id x16-v6mr25270065lji.13.1525800719255; Tue, 08 May 2018 10:31:59 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id q18-v6sm4520391lfi.97.2018.05.08.10.31.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 10:31:58 -0700 (PDT) From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com> To: qemu-devel@nongnu.org Date: Tue, 8 May 2018 19:31:19 +0200 Message-Id: <20180508173152.29327-4-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180508173152.29327-1-edgar.iglesias@gmail.com> References: <20180508173152.29327-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::242 Subject: [Qemu-devel] [PATCH v2 03/36] target-microblaze: compute_ldst_addr: Use bool instead of int X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com, alistair@alistair23.me, richard.henderson@linaro.org, frederic.konrad@adacore.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
target-microblaze: Add support for Extended Addressing
|
expand
|
diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 6fe679ca6d..9232b42a8a 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -845,13 +845,13 @@ static void dec_imm(DisasContext *dc) static inline TCGv *compute_ldst_addr(DisasContext *dc, TCGv *t) { - unsigned int extimm = dc->tb_flags & IMM_FLAG; - /* Should be set to one if r1 is used by loadstores. */ - int stackprot = 0; + bool extimm = dc->tb_flags & IMM_FLAG; + /* Should be set to true if r1 is used by loadstores. */ + bool stackprot = false; /* All load/stores use ra. */ if (dc->ra == 1 && dc->cpu->cfg.stackprot) { - stackprot = 1; + stackprot = true; } /* Treat the common cases first. */ @@ -864,7 +864,7 @@ static inline TCGv *compute_ldst_addr(DisasContext *dc, TCGv *t) } if (dc->rb == 1 && dc->cpu->cfg.stackprot) { - stackprot = 1; + stackprot = true; } *t = tcg_temp_new();