From nobody Mon Feb 9 10:58:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1601419459; cv=none; d=zohomail.com; s=zohoarc; b=FtJcj1LRkQUKfUFOI0YdBLMNSjvUKoqEzbJ5k49g85R2jCnIaRo/GyiL3O1jG3TqSSVgz16Y3CHlg2QnJeEa24h7/SCdEVRra64DmZonKNcMaISO7L8bvK1d2egeUyDuCJwTvL/OijGzP+Jpw+Sr5FwLqKbvh0nStHMHma55Th8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1601419459; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=fVtzhoPQ9oRe5A4whgi5/tX3r24KuxvOyig0n+4hw6k=; b=KGoQgbukAVL/owtdu1vrp/eJh7D2IXP7bbbMv3P+BzSdo5Q/H072vIhs+9+58cNb11alNmzdsseTuFHfjTotYM4hs0JJ7n73nrw+ZoeqNEkWihis9Z2NRwWD3p3/3bsN1+t/cgM681Uof62/OYtCAl10MR19N+8pFVynzbIPtKM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1601419459673817.8423138626003; Tue, 29 Sep 2020 15:44:19 -0700 (PDT) Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-586-DHn-1WwBPLee-QaGrKCSsg-1; Tue, 29 Sep 2020 18:44:14 -0400 Received: by mail-wr1-f71.google.com with SMTP id w7so2370181wrp.2 for ; Tue, 29 Sep 2020 15:44:14 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (74.red-83-53-161.dynamicip.rima-tde.net. [83.53.161.74]) by smtp.gmail.com with ESMTPSA id l18sm7902646wrp.84.2020.09.29.15.44.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 15:44:12 -0700 (PDT) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601419458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fVtzhoPQ9oRe5A4whgi5/tX3r24KuxvOyig0n+4hw6k=; b=XFf2SnG6KsBZ1frdBrJIbLUpjdZTD8vI/2e4xSFjnP3Na/VyxWzJ9v4Q5FT3eC5by0ljbi y1B7ARtJ+P5huaTYJM0N+euVBJdvcmBOuuZx3NEPycC/Hw1QgBF9xrYaeoOEXfKplK3aDw 0H/LpYKo9rkRvB+48Fn1PJ/5j0Ud73w= X-MC-Unique: DHn-1WwBPLee-QaGrKCSsg-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=fVtzhoPQ9oRe5A4whgi5/tX3r24KuxvOyig0n+4hw6k=; b=gFlX2v1KYBKk0c/rr9IkXFRk6kyqBz4mc7kisE7x5Z2uzGDkoU+46PdrLGPBWf6M2D kvUIbIusvuITbQ1Is+rdsQ9C8C+QeuQXYQQQ9MLKThWRRMFhubQ8VlqehEq+4VaTG/kT LP3yjVaqpOKIhPogp8xagBfppY5q4bbOxwb3XBTUwvte7t75+qq1oPVdYBedJVidlAFD C3CkZcgWku8j3O14wXEpFMl7wA9fL1GRIbVLJYAJ+cobjUBoEeTQy4jXyEvqayYgpDeU HQl0/LlOPO3rS4iu3vHGBfZBrGuDyVOrjvCi/hHGLplE9z1dNZCSWN6g+CrrWQuMhcva WtEA== X-Gm-Message-State: AOAM533FeiJKHD71DM/ejqxZZYG8UjBc4uZQBEzD6yadnwbAYwY2LXSb JjZ7fUOrgEkEQbUOK5rERgYlpFG5jpPv2/CEitjOvi1DMvm6z+d+0Iv2TZWmG0sbEGshVIb6ZRO /QFUoUyB0WQytjg== X-Received: by 2002:a5d:5261:: with SMTP id l1mr6619437wrc.193.1601419453412; Tue, 29 Sep 2020 15:44:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeOEbx68Td8hBaYyIFzxkCzoKhQ+EE4XU8IG3LB8RbTCWtKeOlhoOS8sgyI3yT3aeSBndgRw== X-Received: by 2002:a5d:5261:: with SMTP id l1mr6619416wrc.193.1601419453250; Tue, 29 Sep 2020 15:44:13 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Paolo Bonzini , Richard Henderson , Fam Zheng , Peter Maydell , kvm@vger.kernel.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-arm@nongnu.org, Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v4 03/12] target/arm: Select SEMIHOSTING if TCG is available Date: Wed, 30 Sep 2020 00:43:46 +0200 Message-Id: <20200929224355.1224017-4-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200929224355.1224017-1-philmd@redhat.com> References: <20200929224355.1224017-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Add a kconfig entry which not explicitly selected by another entry, but which selects SEMIHOSTING if TCG is available. This avoids: /usr/bin/ld: libqemu-aarch64-softmmu.fa.p/target_arm_arm-semi.c.o: in fun= ction `do_arm_semihosting': target/arm/arm-semi.c:784: undefined reference to `qemu_semihosting_conso= le_outc' target/arm/arm-semi.c:787: undefined reference to `qemu_semihosting_conso= le_outs' /usr/bin/ld: target/arm/arm-semi.c:815: undefined reference to `qemu_semi= hosting_console_inc' Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/arm/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 target/arm/Kconfig diff --git a/target/arm/Kconfig b/target/arm/Kconfig new file mode 100644 index 0000000000..972d9a1b9a --- /dev/null +++ b/target/arm/Kconfig @@ -0,0 +1,4 @@ +# arch-specific rule to select SEMIHOSTING if ARM && TCG +config ARM_SEMIHOSTING + =C2=A0 default y if TCG + select SEMIHOSTING --=20 2.26.2