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: 1042510 Return-Path: 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=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) 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="XHfQwTXP"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 440ssv0BcDz9s7T for ; Fri, 15 Feb 2019 10:24:18 +1100 (AEDT) Received: from localhost ([127.0.0.1]:56621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guQMa-0004qk-L5 for incoming@patchwork.ozlabs.org; Thu, 14 Feb 2019 18:24:16 -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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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(-)