From patchwork Wed Sep 5 01:43:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10588153 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 66FC413BB for ; Wed, 5 Sep 2018 01:45:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57EE229CAA for ; Wed, 5 Sep 2018 01:45:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B2F829D8C; Wed, 5 Sep 2018 01:45:50 +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=-7.3 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F3CCE29CAA for ; Wed, 5 Sep 2018 01:45:49 +0000 (UTC) Received: from localhost ([::1]:53373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxMtB-0005rB-07 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 04 Sep 2018 21:45:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxMrp-0005r5-Tp for qemu-devel@nongnu.org; Tue, 04 Sep 2018 21:44:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxMro-0006a4-KJ for qemu-devel@nongnu.org; Tue, 04 Sep 2018 21:44:25 -0400 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]:39487) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxMrl-0006U1-Ap for qemu-devel@nongnu.org; Tue, 04 Sep 2018 21:44:22 -0400 Received: by mail-lj1-x243.google.com with SMTP id l15-v6so4803875lji.6 for ; Tue, 04 Sep 2018 18:44:19 -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; bh=24dzknKeCijCbKzN18Wr6ILwaIw0uvPYR+ceSzxxlwA=; b=V2Kz6aOSnCtt1RKJejJ3yCryjcswSqanNnskoEOlEP5ICVmyAe9m2ic8BhspEWzLWQ dsvXHSsDYXcU8RgZmN8Ks8Ir5GCgAMZjUr+q2oGeBbWt/iXPdIBAWqzbk9xJ422HxLwg PEhwCpACzeRqLH8goW2aSGP2LduyjD5txZj7mPiLMmlo6Gsgs2JO+68wfRMj64Pypc7f Lh1282EtPPeJAnmIX7P7KxLIunUiJUlptWyj/ThQZp9H0ooLWXW/aoUC7N6VmenLeJQp wiD/slWCsCgHO3/jwlOQrD3XEh3LMvn2+khoRcLWByJajs7S4+t4/C2MjVshbWpsKE/x H/bw== 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=24dzknKeCijCbKzN18Wr6ILwaIw0uvPYR+ceSzxxlwA=; b=X1fff3SCke8PI5Gw6/H2ENsXcfTusCuARNC7hP99uKfqbvoAvrCI9b3vLfjxqI0oxI ZcM+UZoNdYGv5RdrGYytz6C9Yl8MIeSTpm/JMsQojOYPPNQDx/KbgkT7CN9KOjeM1C3f 5woykdF+lQxP6fnSPbNMCOmu9vq/avHKtuDuVs9rjf/q/RQrV+zIXdLhzae8/AIUtZGo rBbwkjjsEzkpuMKoEsayeZFDn8O5QzvZXBifBGWjEfDccmcXuEbsrxJEu6YiuewVxnKN /tuMnQsOgaufsrF4HRht0MtPnwPfCj8nlU/DnLU3eawvITO8nLyrR/5O+f7kEKR1XtQ6 V0qg== X-Gm-Message-State: APzg51CYOPYZzIZIczyqj7EqULoPtEj+YeSbdIWFgjpNU4k86VGjTdgs yN/8IFWAdYt2TsQxUWf2V7QcjyNHLSc= X-Google-Smtp-Source: ANB0Vdai9SNVv67hFGG7C/6zXju/XpZAQ/ml9QuGQ+r874uCq8LookfQHi05EYaNJU6RFD+9lzcyiQ== X-Received: by 2002:a2e:54b:: with SMTP id 72-v6mr12077294ljf.152.1536111857953; Tue, 04 Sep 2018 18:44:17 -0700 (PDT) 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 g10-v6sm59337lfl.11.2018.09.04.18.44.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Sep 2018 18:44:17 -0700 (PDT) From: Max Filippov To: qemu-devel@nongnu.org Date: Tue, 4 Sep 2018 18:43:37 -0700 Message-Id: <20180905014352.970-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::243 Subject: [Qemu-devel] [PATCH 00/15] target/xtensa: preparation for 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 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 prepares target/xtensa for FLIX (flexible length instruction extensions) support. FLIX allows bundling multiple existing opcodes in a single instruction, so this series separates generation of per-instruction code (such as raising exceptions and terminating TB) from per-opcode code. Max Filippov (15): target/xtensa: extract test for an illegal instruction target/xtensa: extract test for privileged instruction target/xtensa: extract test for syscall instruction target/xtensa: extract test for debug exception target/xtensa: extract test for window overflow exception target/xtensa: extract test for window underflow exception target/xtensa: extract test for alloca exception target/xtensa: extract test for cpdisabled exception target/xtensa: extract test for division by zero target/xtensa: extract unconditional TB termination target/xtensa: change SR number checks to assertions target/xtensa: always end TB on CCOUNT access/CCOMPARE write target/xtensa: extract unconditional TB termination via slot 0 target/xtensa: make rsr/wsr helpers return void target/xtensa: extract gen_check_interrupts call target/xtensa/cpu.h | 37 +- target/xtensa/helper.c | 6 + target/xtensa/helper.h | 2 + target/xtensa/op_helper.c | 73 +- target/xtensa/translate.c | 2673 +++++++++++++++++++++++++++++---------------- 5 files changed, 1817 insertions(+), 974 deletions(-)