From patchwork Tue Jun 15 16:57:58 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: 460552 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp4482368jae; Tue, 15 Jun 2021 10:02:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAOz95pzP89OjWoAJf/HY3yRworDlWvSuusqvJzLy9oxK+R+tGdbXGA2ni3r4ZwkzEQbw4 X-Received: by 2002:a05:6402:b11:: with SMTP id bm17mr538081edb.109.1623776564085; Tue, 15 Jun 2021 10:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623776564; cv=none; d=google.com; s=arc-20160816; b=XU0fN9no/M/wFFtTqFRXbrgi5zLqLAEkqjDVO7Wgg8OllpsU8VNzXVyMLQDg2Xwrya W5TeNl+R5Pn4VZavL4Jd+sBuRGhj9tmIqKtxvAx6iVnjDH4xkegG6/LWral+p8PWs05E b0TQMRwQdhLSIeCqEeoo62YcXUTtcNe1bioXKQGcKGILqOSsIfI6GJ6oFZQ4ICoJZCvb DyHui+e/dBdpzm9YnaGyhx8n8C95OPSlUezt6XWISA7T2OFHNmzxioSEdVt+r+QgSK/s JMEcT+lXQLtMWl9q9VXthGWTdJlVEejlKCiDUnG08Wy1m3vrKnNZBGaz+rAt7zL8++Hl p27A== 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=neQfUHRP5udgJtpUuMrl8QxEv+eMlbyPb5+IwoTc2GQ=; b=Q7ydodPqMw35fSmFfsujQIAe8p3U2XBO4iA8jN2tc/HfX3T2UD4MFVRsVxsIKuxb7/ Bi3OAabSS6geyAPm5kjmI4WX13hxD1s3mi8LgJN7i+0a99QUOY7zlLilgPfRk2yBWFrH 1CiCNnC3NMjIU5gbwj8O/HSKOuS3WpeaRUnJS9drauRPQSwpFbz67Bks/8s+RbILAD9W P/aYmoddORZtFK7FP9AK9iH06UzxdNd3bCgn6q/V3vJKq2LD1JI5ZpGIvDt2LJaAnTKg bWxc/6opjlEoru5uCaNjDlR2UTGbdITwhESK3yFT9Rr2wmbsfmWqKSxrAmxqUd8NyeCY 2K1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X28HKTqY; 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 yh12si13938092ejb.237.2021.06.15.10.02.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Jun 2021 10:02:44 -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=pass header.i=@linaro.org header.s=google header.b=X28HKTqY; 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]:40380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltCSZ-0005e7-30 for patch@linaro.org; Tue, 15 Jun 2021 13:02:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltCO9-0000zY-Hd for qemu-devel@nongnu.org; Tue, 15 Jun 2021 12:58:09 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:41757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltCO3-00013a-P0 for qemu-devel@nongnu.org; Tue, 15 Jun 2021 12:58:09 -0400 Received: by mail-wm1-x329.google.com with SMTP id y13-20020a1c4b0d0000b02901c20173e165so46592wma.0 for ; Tue, 15 Jun 2021 09:58:03 -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=neQfUHRP5udgJtpUuMrl8QxEv+eMlbyPb5+IwoTc2GQ=; b=X28HKTqYDA3EBErdpSIISIIrnSxZdHe+KsPGKvlbuD6qWE9mrRjNoLRjihZ6Vxa6Rs t9XDkO9gpfNRR0b2jrme2FdAXBHwdRc22pSHb9tbIUTukmgv40a7Q6olkGei0rOghadm MVVd9lO0tB/IVWrpQtvSZSVbiBAH4q00VcdJijyDRb6jswaM17Loo59Kzb0XoMGqk/Q2 vd/shbo6lBzsDAyVwhAhLIj2tzw510UR8f5mb7VsZrqiIeLiWZZnq4r4VwmWfjHX92lW KsIStHGmLizWndrLY1GdRuCx23O7uwpRyJksNikQ+9myZ3IxstwsmrZSbjwq0P9lK277 +sgw== 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=neQfUHRP5udgJtpUuMrl8QxEv+eMlbyPb5+IwoTc2GQ=; b=nqGKyYf5ojtdP/SVXdsq1UMYQa+CrYraYCfLhls3VnOnSDbmjXbE6dEvbAUXj4rnim kTyXr3n9m1KRCXQkuBnZxyDbgNdEoHqxx4xnDYMYydtXq1xNkHTM9X5V+oLKVPR8zgT2 53Yo0uxE74dNIRhD4cpHAAJPkebkRNEimEyyZxIgKDVyWymG4yQpEo59lbjEet9CxqFv lHYwLXysaPt0ZJrTtalfJ35XoUfxhIuDU7VTgsrS53G5CyBHoC+b3SUQqbbOhDsYRAfi /w0FbG4yEfLF4WfueWxMHnfTQ0NK0MszjKZsKRY235TKLay/siEDHCktztzuOx/AUkL9 SUHg== X-Gm-Message-State: AOAM533viCzl8m/7xzbESG00MxwNMQuJ8wWCFvmrU9Ax5SEYfXE9pNLl 5jmMTORxGhS8ScY9nwsEmXZtmQ== X-Received: by 2002:a1c:9a4b:: with SMTP id c72mr4477392wme.103.1623776282043; Tue, 15 Jun 2021 09:58:02 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id e17sm21300308wre.79.2021.06.15.09.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 09:58:01 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4DB071FF7E; Tue, 15 Jun 2021 17:58:00 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 0/2] semihosting/next (SYS_HEAPINFO) Date: Tue, 15 Jun 2021 17:57:58 +0100 Message-Id: <20210615165800.23265-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::329; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x329.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=unavailable 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: qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi, Hopefully the 3rd time is a charm for this series. I've removed all the review and tested tags as it is a full rewrite. The code is hopefully generic and doesn't have to play tricks with guest registers to work out where RAM is. Please review. Alex Bennée (2): semihosting/arm-compat: replace heuristic for softmmu SYS_HEAPINFO tests/tcg: port SYS_HEAPINFO to a system test include/hw/loader.h | 10 +++ hw/core/loader.c | 19 ++++ semihosting/arm-compat-semi.c | 131 +++++++++++++++------------- tests/tcg/aarch64/system/semiheap.c | 74 ++++++++++++++++ 4 files changed, 173 insertions(+), 61 deletions(-) create mode 100644 tests/tcg/aarch64/system/semiheap.c -- 2.20.1