From patchwork Wed Aug 29 01:16:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10579403 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 AB266139B for ; Wed, 29 Aug 2018 01:18:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 338932A10C for ; Wed, 29 Aug 2018 01:18:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26EC02A151; Wed, 29 Aug 2018 01:18:06 +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 C9B152A10C for ; Wed, 29 Aug 2018 01:18:05 +0000 (UTC) Received: from localhost ([::1]:40757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fup7V-0001rH-6A for patchwork-qemu-devel@patchwork.kernel.org; Tue, 28 Aug 2018 21:18:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fup6a-0000JA-BQ for qemu-devel@nongnu.org; Tue, 28 Aug 2018 21:17:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fup6Z-0003rE-Hj for qemu-devel@nongnu.org; Tue, 28 Aug 2018 21:17:08 -0400 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]:33157) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fup6Z-0003qi-8x for qemu-devel@nongnu.org; Tue, 28 Aug 2018 21:17:07 -0400 Received: by mail-lj1-x241.google.com with SMTP id s12-v6so2981876ljj.0 for ; Tue, 28 Aug 2018 18:17:07 -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=nEpixyER1FT5nnz+81RwGN2pGh8ZWOuWj5b09fMLXMA=; b=S8AxOGr5Xk+wpPlqYy6jKzoG+ywC9c53+wfd2Nh3i4YqaNqoIY/GfjWn4pAhgV83E7 IMCTFZrCda6DqPBnnLXd1izoRX6odymHHUghEBnCRzdk5KAnLdMCiunx6omoYIN6QEll dxiximmiExJzLWr4TMFRucsGtOCVaOngH5Mb5hAaomqBnEfhViP9qLMQm4UDLVT1c9Pk yaChFdg+fxobiabJJHOyGRydJQ+5WJoR1gD9M3u1G91e5j/MZUlEd4ZFVD1jWb584iSu EoAitjHG/zAhHi8BrJxeiz2C7s2eHs5s509P9Ahr81/jPNj5I+csguzacn6zVEyQBg/H keow== 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=nEpixyER1FT5nnz+81RwGN2pGh8ZWOuWj5b09fMLXMA=; b=qQGGKIMDaIbyz3c/8a8XYwK6uQa6OIGEyw5EM7v3UtChonmt2lw+pgR7gx6CK1sZGX BNDo/d8fyTs98SR8lkVXjurkmgyttGWOizikacVUioBwiTh+st4zLPeW2jzbQVoj1/Se r3PyRDhR5tKaQjYLLLJGFG+sLlXl5UdA9Kp4q53awR0qRg/Pn2LJDfp7IenCbGlqibTR l/c0oWHG/PaPd7ZQSnE77ro+9JTAOyBnXwz+QWAZAT3XkexPVl52GESUmihJDncbgxO5 SYcRMtI/ZVFWnWzk2Z5/6dzyix7QmjnVhI2JJVqg/evgPE/AFf1qQJrAkk6K5ni4UXID eOLA== X-Gm-Message-State: APzg51DfYnTe7ML9qccGGyqNkEzLxtLXWISzZxul08QGH7ybqs9nK3OA R8GyZpmGQxh+psIqnQnr7diliiyT X-Google-Smtp-Source: ANB0VdbD9oF1LMUsWDeQOmpQN68T1lWG4AlVKRJzwld9jQPV0RedNgHzv+SguxcSNcKjRUmaw9b+gw== X-Received: by 2002:a2e:144c:: with SMTP id 12-v6mr2807201lju.122.1535505425643; Tue, 28 Aug 2018 18:17:05 -0700 (PDT) Received: from octofox.hsd1.ca.comcast.net. (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id l14-v6sm460143ljh.91.2018.08.28.18.17.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Aug 2018 18:17:04 -0700 (PDT) From: Max Filippov To: qemu-devel@nongnu.org Date: Tue, 28 Aug 2018 18:16:50 -0700 Message-Id: <20180829011652.4466-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 v2 0/2] target/xtensa: convert to do_transaction_failed 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: Peter Maydell , 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 converts target/xtensa to use do_transaction_failed callback and adds a test that checks various types of access to the physically unmapped addresses. Changes v1->v2: - change ldl_phys to address_space_ldl in get_pte and check transaction for success; - add tests that attempt TLB autorefill from the physically unmapped addresses. Max Filippov (2): target/xtensa: convert to do_transaction_failed tests/tcg/xtensa: add test for failed memory transactions target/xtensa/cpu.c | 2 +- target/xtensa/cpu.h | 7 ++- target/xtensa/helper.c | 22 ++++++- target/xtensa/op_helper.c | 12 ++-- tests/tcg/xtensa/Makefile | 1 + tests/tcg/xtensa/test_phys_mem.S | 124 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 156 insertions(+), 12 deletions(-) create mode 100644 tests/tcg/xtensa/test_phys_mem.S