From patchwork Mon May 13 11:35:10 2024 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: 796551 Delivered-To: patch@linaro.org Received: by 2002:a5d:452e:0:b0:34e:ceec:bfcd with SMTP id j14csp1957716wra; Mon, 13 May 2024 04:36:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVkCb2JhKIcmmRDgFvJ6e8Hn7J0adYfyFHaCRbQ1FMgRyaYhUA7PeIlKD9N8DsEHCe5TKAWrpSREqSKtmxbGTR0 X-Google-Smtp-Source: AGHT+IFiwZv+ZKrcVQ8fQfKpUtyvY8PORFoyuD+iByIHKo6VOeHn5tz0le2RjYXzVNe4irDu6sQy X-Received: by 2002:a0d:d60b:0:b0:61a:cf94:97ae with SMTP id 00721157ae682-622b01479c4mr97076167b3.34.1715600175961; Mon, 13 May 2024 04:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715600175; cv=none; d=google.com; s=arc-20160816; b=v2KlQHWl0Gr88ZKW9V63UgDs2/RweOpTJiJuKKe1on1DQcdKbIKAmRl9ut9jE7hjMw ju+Uqj5mgZo074MNQ3N28nJER5bJiwYWoteMddyWjmV23Z+FfNR/kqmPxQKOFc/m/gfw rAFV8Hv5wB0aOgdOQ7ZScL2ZVvfK/NO+YLLsR7cAwVCz+5ysalLbtpEknPiOKLSJ3h5B d/vZtczBF5m0gmcIPf2PFDBq9g4cScoPQs9/CrDZ48Q/zGf29roXTf4PebHDgqiJ8pR1 som5NvV0iCKcTq6ewU+bTweecJQeloIACsjlkFTgGA1jWSdsnPxghm2wt4m2+WOZWS2z 78CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=X9jZxcJ5ik0WjtOOJEXtKwHbeCe/bdGG2ZPreWMpmg4=; fh=7ACP6O9wC7GFSApcN3rAjcSzzA5b5waVMeKpDczaxgw=; b=vAyEaDKMwAdnsZwpqMhbk4/OCkjmTdckwUGqy42vft+CyRGrF6j/eSghtCGFD9mkNI zR+8blk4tWdBCz15On12zeOBNmnygH4rfL44NomPuR3jI4yYu31jq/DN0W7QY7IW4uUi 78Uo95vCOcgkTftJn+6zTe5D8bJR0WXvbINcZC8AQb2yr49GfDpzy9+EX16TpcfbdWb9 Ots0v2ssdhIn0cUAg7IzqPMhGf+AFa51vF6W6oNneJ/vcfd8JVtT4bcjf5Oo0Xl4csRK Zig8KgeVUfQjqhQ8WNkDM2TMEJ+s1rYG784VmEOwHaA3XWjlDw366pLJM7ecnTOdG9fM sODA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L3jvxBep; 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 d75a77b69052e-43df54b6768si92249411cf.223.2024.05.13.04.36.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 May 2024 04:36:15 -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=L3jvxBep; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6Ty3-0005SO-9v; Mon, 13 May 2024 07:35:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s6Txh-0005AL-82 for qemu-devel@nongnu.org; Mon, 13 May 2024 07:35:21 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s6Txf-0001QZ-N5 for qemu-devel@nongnu.org; Mon, 13 May 2024 07:35:20 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-420104e5390so16567505e9.1 for ; Mon, 13 May 2024 04:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715600116; x=1716204916; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=X9jZxcJ5ik0WjtOOJEXtKwHbeCe/bdGG2ZPreWMpmg4=; b=L3jvxBepr2retLRMDTPxXIsAg4s9Cfu6GJs4XF7rHiIVAGPsM+AezIGW4ASOwRvKmX 9wuWpi5m4Sy/XdupCGRp98z6+qMAtC0FLsVMFLtN78yMLxdmWO3L845WtPYOZ7n6vdWd /YaQxbA9/i+UW7vwF8uhPwZlLsB2UCOHrW+/GDdpAktFIcfp0xkbRUbpafpVoluWK/hY Ms4UfupsNs7TwJ3Cit9QRrtYZLUuHRUv8HquS7lwNdlTcus+FBXx5kphEWKVfWgskxkX tNHOlrk3oVGF4yyoinV132iz/0dHaGxTDEQmVfXHnBvSynOqwfQ9/p8DS1sD6S2TcidP PX/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715600116; x=1716204916; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=X9jZxcJ5ik0WjtOOJEXtKwHbeCe/bdGG2ZPreWMpmg4=; b=Rhq0pJ6DeYy7raLs+nEogmtFnHCw7okWf0XwtFx9NoKz9ImgFlSZmm8SQmgL6jByAZ 7KLAkV3fRw4hmy13zg22033bJ1WAk9TA37bmWNHwWkzB6mR1bzeTiOAAEAXwDSeWv8x4 jBlPvzR4s5kO0WPCU+IxJbnDNRhmkzSJZ5Tb3uGzVXk+HDyD7sbVw5is/VZOu756feqv Bc6PQNqY7WEqB05HH8NpREEZtl9rWgZjWzF1UuCREcWZKylBnKw20eNwq8KnXrEGIYvy mVQ88W5w3++OCY3AbhSc1ZUDZSEAMM/SkqFzdWr+Ht48Dg48FQ2+d6PvyNW4ae67V+LR 6lbA== X-Gm-Message-State: AOJu0YzlMIctK88u0GtDuL9MbL2ew1INhdwmeqVcVgDkzhVoCAm8hfkc urIp2QplZfD9ysQupX808OaqJuZLlcuKRQRTO6r/xZ1f3de5t6Zy/1xZlXQLk2Y= X-Received: by 2002:a05:600c:3548:b0:41a:6edd:6c1d with SMTP id 5b1f17b1804b1-41feac55e10mr83254315e9.32.1715600116338; Mon, 13 May 2024 04:35:16 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41ff5e3dcfbsm116015205e9.22.2024.05.13.04.35.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 04:35:14 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 5038E5F8B5; Mon, 13 May 2024 12:35:13 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: Peter Maydell Cc: qemu-devel@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [Semihosting Tests PATCH 0/3] add SYS_GET_CMDLINE test Date: Mon, 13 May 2024 12:35:10 +0100 Message-Id: <20240513113513.640007-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Hi Peter, Looking at bug #2322 I wanted to make sure SYS_GET_CMDLINE works as I expected. While at it I needed to fix a compile error with headers which I guess we got away with on earlier compilers. I've added an editorconfig for good measure. Alex Bennée (3): .editorconfig: add code conventions for tooling update includes for bare metal compiling add SYS_GET_CMDLINE test .editorconfig | 28 ++++++++++++++++++++++++++++ Makefile | 22 +++++++++++----------- semihosting.c | 4 ++-- semihosting.h | 2 +- string.c | 2 +- usertest.c | 26 +++++++++++++++++++++++++- 6 files changed, 68 insertions(+), 16 deletions(-) create mode 100644 .editorconfig