From patchwork Wed Jan 30 23:54:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10789417 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0B2D891E for ; Wed, 30 Jan 2019 23:56:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20FBC2DD1E for ; Wed, 30 Jan 2019 23:56:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1524A2DFB1; Wed, 30 Jan 2019 23:56:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AF2122DD1E for ; Wed, 30 Jan 2019 23:56:24 +0000 (UTC) Received: from localhost ([127.0.0.1]:45945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goziR-00036R-Tj for patchwork-qemu-devel@patchwork.kernel.org; Wed, 30 Jan 2019 18:56:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gozhK-0002Be-NY for qemu-devel@nongnu.org; Wed, 30 Jan 2019 18:55:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gozhK-0006uN-4c for qemu-devel@nongnu.org; Wed, 30 Jan 2019 18:55:14 -0500 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]:45398) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gozhJ-0006tx-TC for qemu-devel@nongnu.org; Wed, 30 Jan 2019 18:55:14 -0500 Received: by mail-lj1-x241.google.com with SMTP id s5-v6so1032419ljd.12 for ; Wed, 30 Jan 2019 15:55:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=F+c7IK/5ct7vN5B78UzexMB7tQE0YvXdioKskOKof+o=; b=dvv3jDfjzbKfXCP9lhGugvNeE3mMOiijXdFh0zCPrFVUFNTk//VRXmqcPXRGUoOMFj uTjUDQkmWaYRjtodGD/PiIu6AwwPsLgLhyMMVckqUieSi7r8ohDBGJYQRGdnV9r/Ph/y 1HP9JsAd+dA/vQvJarikNDVI1rOx4/16+9HwdJp9SLpWJQUesofP6pk91zDPcIb7J2G6 GQ2fHhs/1ydnFbSl3IDidC+XEB2k/AOuehupTzFPYBeJk6lxUQunD+jOPYh3fr9legKT P6B2pVsGnC9T5jwtH+fiInlHGkzbcntIs0rW00D5KslczUlqHQbs73kZAb6pgqPzCh9B J6KA== 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; bh=F+c7IK/5ct7vN5B78UzexMB7tQE0YvXdioKskOKof+o=; b=tez9NeQIRKQYw0YbwwayTh+NlfVGc6I2XarqQJ9mpi9WKpxKi042RpQUU/6UfBjp8Y MMdWlAsX3HS4IKkJV42CWIuM77zIw4jcfcaBYWmV4oJsOdWdXOkm90EgI2VV5Bgst8bk XYMkbkyu2mh50DKcWT5e8Gr6RubZUaqWKvW/WyhXkyxESIcMm3IuWxS/PSAsADq50vQ7 v0zwIUs8NBkoxOOfXYvHlrrao+K8SrXKeUUBcbjwcLPn1nkkOTEeGdUWCyofVP6AxLSP PYXGLHrXo1o7ohXrD63thzto6WcLmc/9yy7fKHVbvg6Z54Wx+F2ipg9VldHdewm85ZkL qAmQ== X-Gm-Message-State: AHQUAuaat5mvkwhi0D1UgoGkE1wJCCF47//yZCJ7L5U9l/MTwSY6hCBK lVLMzQP4W98vOMBCgHGMtpz6na9eHbk= X-Google-Smtp-Source: AHgI3IY09lgXjSqH/Ar+H2x0gFPAuW4vRzRhcn3hcubHs0kZX155wSfotJ+/KDbsIh9iBx0E/BqvYQ== X-Received: by 2002:a2e:9a48:: with SMTP id k8-v6mr10216380ljj.181.1548892511454; Wed, 30 Jan 2019 15:55:11 -0800 (PST) Received: from octofox.cadence.com (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id w9sm527752lfc.66.2019.01.30.15.55.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 15:55:10 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Wed, 30 Jan 2019 15:54:39 -0800 Message-Id: <20190130235442.2876-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::241 Subject: [Qemu-devel] [PATCH 0/3] target/xtensa: add basic FLIX support 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: Max Filippov , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hello, this series adds limited support for FLIX instructions. FLIX (flexible length instruction extensions) allows bundling multiple opcodes in a single instruction. Each opcode is executed as if it was the only opcode in the instruction. Opcodes may not simultaneously modify same resource (register or state). Multiple branches, even non-taken, are also not allowed in one instruction. Instructions with opcodes that have circular dependencies between used resources (e.g. opcode A uses resource U and modifies resource M, while opcode B uses resource M and modifies resource U) are not supported in this series. Max Filippov (3): target/xtensa: sort FLIX instruction opcodes target/xtensa: add generic instruction post-processing target/xtensa: move WINDOW_BASE SR update to postprocessing target/xtensa/cpu.h | 5 + target/xtensa/helper.h | 3 +- target/xtensa/translate.c | 265 +++++++++++++++++++++++++++++++++++++++++---- target/xtensa/win_helper.c | 14 +-- 4 files changed, 251 insertions(+), 36 deletions(-)