Message ID | 20180508173152.29327-3-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="KpCRc7nz"; 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 40gRYQ0L8Fz9s0W for <incoming@patchwork.ozlabs.org>; Wed, 9 May 2018 03:38:50 +1000 (AEST) Received: from localhost ([::1]:52585 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 1fG6Zb-0004Zl-Js for incoming@patchwork.ozlabs.org; Tue, 08 May 2018 13:38:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <edgar.iglesias@gmail.com>) id 1fG6T2-00081b-Ao for qemu-devel@nongnu.org; Tue, 08 May 2018 13:32:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <edgar.iglesias@gmail.com>) id 1fG6T1-0005G6-F6 for qemu-devel@nongnu.org; Tue, 08 May 2018 13:32:00 -0400 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:45855) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <edgar.iglesias@gmail.com>) id 1fG6T1-0005Fk-6c for qemu-devel@nongnu.org; Tue, 08 May 2018 13:31:59 -0400 Received: by mail-lf0-x244.google.com with SMTP id q2-v6so1854775lfc.12 for <qemu-devel@nongnu.org>; Tue, 08 May 2018 10:31:59 -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=PTC1iyn7xoSRCNuOuSH7/unSBQoeZHPOMBKvcAxsggU=; b=KpCRc7nzlDbIPS4ApRM08nKrq0RJYuVfLcmjFhMj6w1cTBNA81Vg2oyIroeXUA//Kp qzB1i0uKzMCCaC3Rd7MXRhXWScYrAEs3Mdgkr5bMBunMRKpWX1sFzTYunUBwdC4miq9L rxEvUyYUiCj/Na7q2BDZR5TkmP2jJM4GDRY0HfhVZglqVGD/n2m+jVQ4aLf3xp2jDrVq 0SZ1WzvbHLWuK/QzjnyvTrSr/2V6sKlX7Cwd4LCHPYxeR1EPV2yK30OjQq/4pjikeVfH JQpRNjid/vZUanzNbh2C3TMMsO2voHDiQcJexAZCK8VapDCmAubHo4RloHR79En9TnXE Lz/w== 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=PTC1iyn7xoSRCNuOuSH7/unSBQoeZHPOMBKvcAxsggU=; b=sRdwO8f9+vCglaqDDS1CuOuzo7Xyd4Z/5tEkBaUfO78RVBZxKb1HdZu49Y7Zh2RODa wCt42LuRNelqR3ko6B5G6DodlPjJTTUdb7n9zeS3uzeFd2f4k6iwCJHgoNoy708YYX6F 4sKOqSH3R0F5AnUcM+oS4HSLkPAWQye3TGY/5wU3pw2PE+DeqG/k5fS553aDfvNl4Fuf rqw1YBlodhqgj1GQlJ3BhcGfzNAhUuf0/SsPkzwNSQDKO2FaKhTVEKlNu3YxO/Jpe2Iv pCS5Lg33URXqkBzenC183UZRzVGvtbKpQ7OL+qV5ay8mgQeJwDvEOqbghF5/ipG29E39 gXEQ== X-Gm-Message-State: ALQs6tAPK+ruUrLJ170bZ3TlvnlLQALlcYONQ4yFC2ip9dWTGMJc8SlF Opk7p2E/Dg43sTpaGhD3DQttKw== X-Google-Smtp-Source: AB8JxZpyv5GWtoTo5Zk/1wCNEaqNEiJSRERB6i/x/ZacNvAzrnqpSRNlCixR4kduqJPNsjzsyEgy3A== X-Received: by 2002:a19:d253:: with SMTP id j80-v6mr12521634lfg.88.1525800717708; Tue, 08 May 2018 10:31:57 -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 j17-v6sm5494451lfb.40.2018.05.08.10.31.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 10:31:56 -0700 (PDT) From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com> To: qemu-devel@nongnu.org Date: Tue, 8 May 2018 19:31:18 +0200 Message-Id: <20180508173152.29327-3-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::244 Subject: [Qemu-devel] [PATCH v2 02/36] target-microblaze: dec_store: Use bool instead of unsigned 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 33f21aa5b7..6fe679ca6d 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -1027,14 +1027,15 @@ static void dec_store(DisasContext *dc) { TCGv t, *addr, swx_addr; TCGLabel *swx_skip = NULL; - 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) {