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: 963185 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=2001:4830:134:3::11; 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="S8AxOGr5"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 420SR30vx5z9rvt for ; Wed, 29 Aug 2018 11:17:35 +1000 (AEST) Received: from localhost ([::1]:40755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fup6y-0000MX-OA for incoming@patchwork.ozlabs.org; Tue, 28 Aug 2018 21:17:32 -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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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