From patchwork Wed Sep 11 16:49:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 173620 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp994422ilq; Wed, 11 Sep 2019 09:51:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7bSjecikvuu9tslmUey4Lh/SXhnyzrgJ3MLLq/2PFEHWNRboASm3tyyDX7jFRyZPADS7V X-Received: by 2002:a37:684f:: with SMTP id d76mr10032581qkc.415.1568220684292; Wed, 11 Sep 2019 09:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568220684; cv=none; d=google.com; s=arc-20160816; b=tCURwWlwG43OfN1CW9xvzyJM+xAAF4OR/4PNW23MiuwJ3ySwBN4JUAsDnQdiuJkE2r xZIP/3TiXVaLIdnGHC1dYmUP42wcfdLrFlC6AXeLXO4LQiVJpDED4OJ3Abnb6iDzwyxw t7rnYbWp9r7bxBI3krbi4FTNsnYa+iPZoCVarSCSjSdtFFwdCdNdpqCGOxQ3vu7K6E00 Dyo79kLH6YxB1qWpDh4HGemPA51PFsHohUQhYsvOCiZotk1rP3xG1fgAtiBeNocn383X wGlH9NKsA/bleE9X4F1fgUub2srTib1YwpphB3hg/6M5EoYUGjc4VMC8jP9mzeFN7hZ2 EInw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature; bh=s1vPcTwJkdcbFJYXRlbSHHNB5ZlopLObSX2zy00+/xk=; b=PhutZbOFFBf3mLr88WC9PAl7nYQ4HjzEJBrBemKzAq41DekntRV1VURlNcEkdVbNcW AleAPE0FrErcbkLw1ZJdQ49FZlQxfFsU9Uuh0Wdl55PGhcy18Dn1ZmBFbSZDNtqyRtoo SGrnNJmSBGc/+8lzeO6Wx6O6gzn7LWR7+rQef6bL00VD4UfE1Q/3QTz0TG6zLVp2BHe7 dU4CGGcy10EsppVUkvQJRSDuhtSZu1ZwlHOn9PsWMr/Ifla3zDyYoN5Mbn+6ZUU+x9L1 HznMMHDMGfz7sk6I7Ymla2ONXz6uZO4quiIYYAGNYGWAjV1xjPAVhJILvp5u7HHDpjmP qNxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OmbjRmx0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p5si17425868qke.343.2019.09.11.09.51.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 09:51:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OmbjRmx0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i85pz-0006VF-6R for patch@linaro.org; Wed, 11 Sep 2019 12:51:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43456) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i85oi-0006UY-8x for qemu-devel@nongnu.org; Wed, 11 Sep 2019 12:50:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i85og-00047c-Tz for qemu-devel@nongnu.org; Wed, 11 Sep 2019 12:50:03 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:33662) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i85og-00046y-KI for qemu-devel@nongnu.org; Wed, 11 Sep 2019 12:50:02 -0400 Received: by mail-wr1-x443.google.com with SMTP id u16so25409879wrr.0 for ; Wed, 11 Sep 2019 09:50:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=s1vPcTwJkdcbFJYXRlbSHHNB5ZlopLObSX2zy00+/xk=; b=OmbjRmx0mcElgohFBUpUZ+JvvVYw39mKnuFdMq3K4FXuEWd0Z8D1iDUyPwxmvQSRhp tZV9ganSsMyp1O2PgTqcSrpP4Jr7IkCap8Sc/uY7KLhhLgMo4F0afUhMO4UEHI0rW88X QotpAmNA5fPkpcrKe+EoFG/iyCKX5Liro+yU08RE4XJwXPyDF/9Xfv5y6Bvs9ts7o63A /oPQlakBLczUZxsHG+wy+kDiVRA0h60H7fWn0/UNosyaPIbBv61KYom4daSVYtdnXeuX KUQ7KX2eqF8HHTgZlqGcZyuQ7i0FTXssQ806SnmgmGhSGCvwWGj41u3xv7gwEu4SETfj bf8g== 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:mime-version :content-transfer-encoding; bh=s1vPcTwJkdcbFJYXRlbSHHNB5ZlopLObSX2zy00+/xk=; b=JsF4Ew1bPKGHVhuGgYC7uIEmD7ijnenBTA/xgVgsiETbtJwjw4X5jQP9n2/DKBPZZm 43kDvD4yT1MogWi2xLv9mLwgh3rE+HMr6KSBnM3D8dDAk32rhaeHQCqvaHGhHxWlzdpE sll70LAwOjiXIJuia0gu20GmgjeobjtdOQyUZA/5GdMEs0uS+KhvRNiQS59HvZmb2JnH +Nyxi7JJ6wz4j661vEyBAM4qUhbvzTtu6UGUc5AWRrsCkXrk7Vvu4nRxXkqbT4ajOWPa 75F5Ggry39FOYIyputYauyMZoCEXboCgc/DpVtwYYyG1oniuadh7OWbhkAP3X5ud+tRD Xy2A== X-Gm-Message-State: APjAAAXyVI14MuZ0gpVWfFscXdYasi6oNzWCAiWQ9xoHev0SO2snVcTj 3paisvqLjS3KQN5lFx7hCTsCAA== X-Received: by 2002:a5d:6951:: with SMTP id r17mr2216549wrw.208.1568220601242; Wed, 11 Sep 2019 09:50:01 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id p85sm7632122wme.23.2019.09.11.09.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2019 09:50:00 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E031C1FF87; Wed, 11 Sep 2019 17:49:59 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Wed, 11 Sep 2019 17:49:54 +0100 Message-Id: <20190911164959.11003-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PATCH v5 0/5] semihosting cleanups (plus minor tests/tcg tweak) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi Peter, I've restored the #ifndef CONFIG_USER_ONLY to ensure A-profile linux-user still works. I've cleaned up the now unused linux-user code and added a simple smoke test to make sure we don't break it my accident. There is a tests/tcg patch at the beginning of the series which was just fixing some obvious errors in the tests/tcg comments which I couldn't leave untouched while I was adding the smoke test. I can put it in my next testing PR but I'm happy enough for you to take it through your tree if you want. Alex Bennée (5): tests/tcg: clean-up some comments after the de-tangling target/arm: handle M-profile semihosting at translate time target/arm: handle A-profile semihosting at translate time target/arm: remove run time semihosting checks target/arm: remove run-time semihosting checks for linux-user linux-user/arm/cpu_loop.c | 3 - linux-user/arm/target_syscall.h | 3 - target/arm/helper.c | 96 +++++++------------------------ target/arm/m_helper.c | 18 ++---- target/arm/translate.c | 27 +++++++-- tests/tcg/Makefile.target | 7 ++- tests/tcg/aarch64/Makefile.target | 8 ++- tests/tcg/arm/Makefile.target | 20 ++++--- tests/tcg/arm/semihosting.c | 45 +++++++++++++++ 9 files changed, 120 insertions(+), 107 deletions(-) create mode 100644 tests/tcg/arm/semihosting.c -- 2.20.1