From patchwork Thu Feb 14 22:59:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10814017 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 BF9B21399 for ; Thu, 14 Feb 2019 23:24:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB2C62EC54 for ; Thu, 14 Feb 2019 23:24:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BD812EE96; Thu, 14 Feb 2019 23:24:49 +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 322802EC54 for ; Thu, 14 Feb 2019 23:24:49 +0000 (UTC) Received: from localhost ([127.0.0.1]:56635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guQN6-0005sy-FZ for patchwork-qemu-devel@patchwork.kernel.org; Thu, 14 Feb 2019 18:24:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guQ8v-0003LF-Cg for qemu-devel@nongnu.org; Thu, 14 Feb 2019 18:10:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guQ05-00054c-AY for qemu-devel@nongnu.org; Thu, 14 Feb 2019 18:01:02 -0500 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]:42114) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1guQ03-0004sE-Uo for qemu-devel@nongnu.org; Thu, 14 Feb 2019 18:01:01 -0500 Received: by mail-lj1-x241.google.com with SMTP id l7-v6so6723065ljg.9 for ; Thu, 14 Feb 2019 15:00:41 -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=jCwTygXV17Z0eUzfzDfSQYMFa0pp/KienTWfSk/hSIs=; b=XHfQwTXP/Se2g3WCb+p8/UCTaMmJQh6zmzJ/LsgaZoFxS9Tq5XBqL6Xk4XOPLj+I4A F8/RXFUQtqjPGbmRUCaGXVQzKXHZ3ytFp564mEiXefDPiXmYuYnE63fFw3JuzYj+akQb nBCdmDxoK5cDVYHYITZXvwY/M5sprrFa7zxiR2L8tu49a5rzS3ASc8Nho6KX7MaOuOeN 7iNMQCYGRnu+sUPOYdtBOQkpC6xSetfWe9XVjfVXmdIrMomFpsc/ihKw93KI+wyhR6tu n6MUHxqPAyrebNDGKNxHNpK0tJpnxwvrHo3Qran9gOngmk+TmwErKK2pWwQd/g++RZr0 ibfA== 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=jCwTygXV17Z0eUzfzDfSQYMFa0pp/KienTWfSk/hSIs=; b=kIqbNq2FvKREmmjPMlfu0B9wQOI4DIXKW6M5UK12+NcpfUxR5+9wQNFR7EgtEt9nnd oyJAj8DSAOg1jdG/XXNbSA/B5Ps2Uh4vlaNbj7BnelbQpgb6ABzse+3QN68zp9VQb2M3 pSKYAkNzDbLIFxTpdaBYT4ycbP780yZOiHEAiyiAhs/gIF3dpfo54AUdiJWBMDEd5ez8 yeZIrGb0OJHThKRdQ4uwI0jXWdt1x3TnQSg5oYkds0JGOo6xH+51rOHOT8R9qTz6DM8A +dh85C7M6Fr0vha3K/BFxubg1dCvg/CVthcn1LMyle6eONs9VxvWpVVDf0glUfCX3sUk 3WOA== X-Gm-Message-State: AHQUAuafog2inAVR9yMK2zCp4OahYvjq7zLBlzNoW/tElrI0hCabgjZT 15tNzUhalje692f4IUZOiis7X7iT X-Google-Smtp-Source: AHgI3IaARPkvmGgxH6nSMw0uWUgLyBmZDWhInrC3IWKCkYt3vRXUQQPg7nLGVA91i1fxuEmzXyJ2oQ== X-Received: by 2002:a2e:9356:: with SMTP id m22-v6mr3715897ljh.135.1550185239616; Thu, 14 Feb 2019 15:00:39 -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 h123sm172384lfh.26.2019.02.14.15.00.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 15:00:38 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Thu, 14 Feb 2019 14:59:47 -0800 Message-Id: <20190214230000.24894-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 00/13] target/xtensa: add 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 other than registers (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 (13): target/xtensa: move xtensa_finalize_config to xtensa_core_class_init target/xtensa: don't require opcode table sorting target/xtensa: allow multiple names for single opcode target/xtensa: implement wide branches and loops target/xtensa: sort FLIX instruction opcodes target/xtensa: add generic instruction post-processing target/xtensa: move WINDOW_BASE SR update to postprocessing target/xtensa: only rotate window in the retw helper target/xtensa: reorganize register handling in translators target/xtensa: reorganize access to MAC16 registers target/xtensa: reorganize access to boolean registers target/xtensa: break circular register dependencies target/xtensa: prioritize load/store in FLIX bundles target/xtensa/cpu.h | 37 +- target/xtensa/helper.c | 93 ++- target/xtensa/helper.h | 5 +- target/xtensa/overlay_tool.h | 1 - target/xtensa/translate.c | 1595 +++++++++++++++++++++++++++--------------- target/xtensa/win_helper.c | 22 +- 6 files changed, 1162 insertions(+), 591 deletions(-)