From patchwork Tue Mar 9 17:21:23 2021 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: 396089 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp2855433jai; Tue, 9 Mar 2021 11:20:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxftDPmo5xQ93UGstEMHeLm1TSGH0aq3djZQqBOjirQ8AQbn2v1dWXm98+Eb7kemy3gyF2C X-Received: by 2002:a5d:9e09:: with SMTP id h9mr24914626ioh.178.1615317613800; Tue, 09 Mar 2021 11:20:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615317613; cv=none; d=google.com; s=arc-20160816; b=ea90j43+Etu2Gx6Ey9qBWKOyCSTY81kMdH1xR0JNmg2uYxIS5oRA/EHhkL7C9ASdOL m1YNJDNyM1+TJgdI4qT2fKp240YWRSvE0JIOpX5gHZHF9IATYNZur/uQ4rofAnuH1tzv Iuwhh9OhBMM7GPStLNybtmkjBovjly/KBfPf7NMN9wuq2kRz/BQXM5JoBxcdQnXGDRx2 wopI6InS5K3f1FwtoaK9BoVn4yOhePObTDGmJmNFpuEzIAYl2UgzGkuk92d/+BhTM77C 0GLgpYhh+mhocB25LLPYgF12AwkPIN6HQbDZli+sQAYphkwnao4IPyfjt+oXFKjNzKzW Hpjw== 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:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=UJdRBlWM+wZ66yoBLFObCROF7hpC192uscdEZY5GxEY=; b=CDCnaa9ytOFRYB3MFGcs8rlj2d6DCpn9Mkqcudgg0ek7uC2m2m4AxOxfkHLMzoxOQm 1XycMyGvUCp1XI6D2isQULYq4ugGSA2E+KxDJKfWTneKzTGVT13M3zT5oArM7mp3il0g hz236/9mhhTtXqg+ZVghom3Sewg6Boyf492KoGWsIdZzcxDv8fbEprXidUuMfioggqYA Q5huhzk2HrDsyENhqnILeMrhlC9X7lIlZiFjLx266mE9js57xOHgv/00geNDwI8gRrMv A3J3OrCOdm7Nij0IJSfW/EzuBivyMXV0sR+pOO61PoO5ed57IJ9PTQALU/vFGAvnotHf PQyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i7s2x861; 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=pass (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 d10si14963734jam.87.2021.03.09.11.20.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Mar 2021 11:20:13 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=i7s2x861; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:55576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJhtt-0005kw-6I for patch@linaro.org; Tue, 09 Mar 2021 14:20:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJg32-0003Ue-Eb for qemu-devel@nongnu.org; Tue, 09 Mar 2021 12:21:32 -0500 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:45511) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJg30-0003q6-Kt for qemu-devel@nongnu.org; Tue, 09 Mar 2021 12:21:32 -0500 Received: by mail-ed1-x530.google.com with SMTP id dm26so21705840edb.12 for ; Tue, 09 Mar 2021 09:21:29 -0800 (PST) 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=UJdRBlWM+wZ66yoBLFObCROF7hpC192uscdEZY5GxEY=; b=i7s2x861cgBBsbrHGRmdeg4lcqr8JtWLPuLXpvJXZB6jQIRv8ygX84y9nhO3lPm3T/ 0HNMI5LNowIOGU7Nn5xy/S3ZiX2JKIocWuSxA97YiZTAh+Zi9/bhsv4uSHiNPKkQxli0 kYtWwEgvYvYWVBxg0KtwecrLiL1KCfcJuYvjwD48vVlu8XoSX9sLxkmgQzoQz+oURQsG 56l01mXem7M7I6pR9O7rwEJxbBg4jI22Uh3nrSP54rFyuLnB0TCoxipHRZ4kY9AN7esU HcwbKll+8th415fmywxSYAa7XvlbXt/WPDaPieJgWmxVc2lAhm0sTYGxXsMy9D9cppm5 psKw== 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=UJdRBlWM+wZ66yoBLFObCROF7hpC192uscdEZY5GxEY=; b=taKYc5G407uCcho9r+P9x08olvAfeN4ZgMdo9QlP/16yfgdjLiv5/gFN10eFqUllXF X/raBBECOuQIg6NUBIfrDaIQYWeiKytR5XLlpWYOWVGTBxQnmixAsmvY4VyjLJfpYRt2 NEhRQfrdK6DNmvdEd7hdg264exhnZXsml2Yl/ZWp+9YWS/JnrCKcgcMBp8ZMaHwHN4jU uGMeJkFYNh5g/nPaEbpVKYeeNv35spJC8R2dojZ6lxYIVXSBmDqDJ6CCsXIr8i+8bsqU UnTZu7ZVZK9KL/L3vki4DQarwUnJV0lw+j/xPiTsCbUJKk0ZxA+a0fSQj6lGoZOp7JPM j9hw== X-Gm-Message-State: AOAM533oJ1jhsBnLBSRAFATn+jiFg7FN+9yH7KpyR2KqA0OJhsxHIXVU 7ijJogYfQWSsGzIod0USylli0A== X-Received: by 2002:a05:6402:22f6:: with SMTP id dn22mr5243032edb.214.1615310488766; Tue, 09 Mar 2021 09:21:28 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id r13sm9475011edy.3.2021.03.09.09.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 09:21:27 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1A4981FF7E; Tue, 9 Mar 2021 17:21:27 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 0/4] semihosting/next (SYS_HEAPINFO) Date: Tue, 9 Mar 2021 17:21:23 +0000 Message-Id: <20210309172127.20470-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x530.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: keithp@keithp.com, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi, Hopefully the final revision, instead of hacking about args to reverted to the orignal code (with minor tweaks for args). Still based on my in-flight PR: pull-testing-docs-xen-updates-080321-1 which already moves the semihosting code out of hw/. Please review: - tests/tcg: add HeapInfo checking to semihosting test - semihosting/arm-compat-semi: deref parameter register for SYS_HEAPINFO - semihosting/arm-compat-semi: unify GET/SET_ARG helpers - semihosting: move semihosting tests to multiarch Alex Bennée (4): semihosting: move semihosting tests to multiarch semihosting/arm-compat-semi: unify GET/SET_ARG helpers semihosting/arm-compat-semi: don't use SET_ARG to report SYS_HEAPINFO tests/tcg: add HeapInfo checking to semihosting test tests/tcg/aarch64/semicall.h | 18 ++++++ tests/tcg/arm/semicall.h | 15 +---- tests/tcg/riscv64/semicall.h | 22 +++++++ semihosting/arm-compat-semi.c | 62 +++++++------------ tests/tcg/arm/semihosting.c | 26 -------- .../arm-compat-semi}/semiconsole.c | 2 + .../multiarch/arm-compat-semi/semihosting.c | 62 +++++++++++++++++++ tests/tcg/Makefile.target | 3 + tests/tcg/aarch64/Makefile.target | 18 ------ tests/tcg/arm/Makefile.target | 16 +---- tests/tcg/multiarch/Makefile.target | 31 ++++++++++ 11 files changed, 165 insertions(+), 110 deletions(-) create mode 100644 tests/tcg/aarch64/semicall.h create mode 100644 tests/tcg/riscv64/semicall.h delete mode 100644 tests/tcg/arm/semihosting.c rename tests/tcg/{arm => multiarch/arm-compat-semi}/semiconsole.c (93%) create mode 100644 tests/tcg/multiarch/arm-compat-semi/semihosting.c -- 2.20.1