From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B747EC433E0 for ; Tue, 9 Mar 2021 14:19:51 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4D95A651A2 for ; Tue, 9 Mar 2021 14:19:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4D95A651A2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:47580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJdDC-0002yR-9B for qemu-devel@archiver.kernel.org; Tue, 09 Mar 2021 09:19:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJdAz-0001Hj-LG for qemu-devel@nongnu.org; Tue, 09 Mar 2021 09:17:33 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:39438) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJdAx-0001gG-KZ for qemu-devel@nongnu.org; Tue, 09 Mar 2021 09:17:33 -0500 Received: by mail-wr1-x432.google.com with SMTP id b18so15901822wrn.6 for ; Tue, 09 Mar 2021 06:17:31 -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=a+G9lfkQfB31Vrq/isMVua0eAtJLRoLcBAtaMiwisrs=; b=EG/u1PbV4xpc7a+0ieG+WxCq0BZBgcv2I5tRe32yNbedNaRKeLRC+MOMvXLdmnyLPe mVCQTk7xJeXP9j7Vo3YCOV9KO6uktzxPWXUMhFH4fZZ53P55LWdNEZFobvPDLSU7nxwE HBmwbnMd1b6IFQLK0xMRd8Y4PxNUzD/p8hIYhcSWNuc1BpOPLbuuFfqrsudTjvmrCORf 7pJC/2lrz1TlHYgm6FaqLSSF+XEFPyncHIVk1qHT94c0EYY94x53qX84BDYFWd3NsugG PvqjPoKXD19UGazdtF6wlEdJidzUBT0AYImIB8geOrL6AC8PttxOSFEZYiL3wjIvB6I1 h+Kw== 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=a+G9lfkQfB31Vrq/isMVua0eAtJLRoLcBAtaMiwisrs=; b=rBR2UhW0gaobm2N8nHGo3S1GEVRLLiiDMDQ9KRsHR3iETp/LKeQRjiJ5LXRyZMAXSy IjJgvGqsjmsk41DH4IiKI3UaUqWpatNyUM6x2TKa+KFOluRgEtXiGYWgZCfexRI4Z97X iXozxg4YGOdVqJQ0ED1jIR2d9HIeIRvZ5hJSRz/aPkpPaMmBEHNJXMrh4cVswGv89/r+ UYyQHBfAEgt/PUpyyykd+hVBs3qtX2n1fQbN7Iyc1UDIokPf+KzqpOmn9n1+CK1cX8t8 mCtAg8PV9tllbMJZbS5QyXWYfKBIxapiBu/AUZM59wxlUxNjVrVTAfHJotYOomjvx6Z5 wQVg== X-Gm-Message-State: AOAM5328cLeMsiVDE4vNhzmc1uWffCW3D/k5W64cZYsJbqNyZk5yQwHS ukIZvM0APE/9gkstDDYOFEtUqw== X-Google-Smtp-Source: ABdhPJyfo0KU7aGDNkcU0ypGQ/Z6N8rXtPNfVD/KRcyHFMksWvCbvCMRXD6EgWSkC4XQgcMGrnkDSQ== X-Received: by 2002:a5d:5141:: with SMTP id u1mr28663545wrt.31.1615299449701; Tue, 09 Mar 2021 06:17:29 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id z2sm12068825wrv.47.2021.03.09.06.17.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 06:17:28 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 089C81FF7E; Tue, 9 Mar 2021 14:17:28 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v2 0/4] semihosting/next (SYS_HEAPINFO fix) Date: Tue, 9 Mar 2021 14:17:23 +0000 Message-Id: <20210309141727.12522-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.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=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi, OK I took another tilt at fixing the SYS_HEAPINFO bug with a lot less code motion and also expanding the tcg tests. Currently 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: deref parameter register for 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 | 56 ++++++----------- 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, 161 insertions(+), 108 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