From patchwork Thu Jul 8 15:17:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 471233 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp409926jao; Thu, 8 Jul 2021 08:47:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys1EKCGiUSB85Zjf9JYt9JHrVe7niNS6PN1DeH6s2anNBjbQZK19BfmpnLAqBaSxr7cKUG X-Received: by 2002:ab0:906:: with SMTP id w6mr18975736uag.37.1625759279025; Thu, 08 Jul 2021 08:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625759279; cv=none; d=google.com; s=arc-20160816; b=B19rXa97j2PrijXbIMsKtkZQSi+ed1tTFpR+d1rusyCkkaom5+ezAZIfH111aBMgNs NCGLGAogcBcIQjwD2tIp6oX9359ulBCStErZeY2KCe7/4smMoTOB9dcK0/Sah8SWxXAT L4TvUj7sJlRPEdvRDZibV7jiXIfeo9ipbbach0cKzh45ii4ZDZNvMapxUWV2nAnCYVSp 66aP9K1xgOju14xfea8BMqNmgQy4P3DJ+BPh6kI+HLSWXyQf8U5YC8dXqL3hiIe6DqKa 0amQFz+C3v7hukKfC6qUy8KVdiWKdWb0WRoAfAr2ONhsKj+tJUQpe/0Y8NjGX0oQaMiQ eTaA== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=sI6h5k66J716vMMrZDkOf++e8ZaDHw1O6KwZgtD+eDQ=; b=OUQ4bQ3Z94o0Gz1IOfRlvvzK2nFVCfE9T1+Mlt/xVnzVVFjx7EV/JDbt71iXO99CQo m+/Kws1D0oATHKNZYulYWY/dy9oJCGz5HHl3pm5Z0Q/UJigh8hRKT1bsnLYMtdkYK0/W tvq6Yz580iB81KAgCIoYMWwMLUHtPh4VVKUyvmeWV5Y+YsFDzOZiv2LzoJkw2HHD9+pz DJy3UIm4t9RHvuBsg/8UZrlGsf7JEWjTmI7YcIqqCln78y1S3TVcdHaqDZq72yFzDa7G Dig0w1pgwLSrxw6lwBXfArsyiVc8y9aNWh2/V5K6adKi1I/aPcObcicJ86COSEaIT/eB gO7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=OfR7L8eI; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l9si3009955vsh.45.2021.07.08.08.47.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Jul 2021 08:47:59 -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=fail header.i=@gmail.com header.s=20161025 header.b=OfR7L8eI; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:58548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1WFp-0003fM-1r for patch@linaro.org; Thu, 08 Jul 2021 11:47:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1VnG-0001Eb-UX for qemu-devel@nongnu.org; Thu, 08 Jul 2021 11:18:27 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:46700) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1VnF-0008Lt-5F for qemu-devel@nongnu.org; Thu, 08 Jul 2021 11:18:26 -0400 Received: by mail-ej1-x630.google.com with SMTP id c17so10206543ejk.13 for ; Thu, 08 Jul 2021 08:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sI6h5k66J716vMMrZDkOf++e8ZaDHw1O6KwZgtD+eDQ=; b=OfR7L8eIScNfsU5n0Yh6hrUy+Z27phj5kztE5fmQLovB9C8VnEmfjQPvZV2aYlWuco STvb0hud/BwMA1abiZhwK/rVYZqmrol87brnoG9F7cNV1C9LWXJn7rWJSIWxsIFMh6CN 2Cg7I/6gEKNETO1uVAUszvC0/0VtCNAjiJB9tvjzO/XH7ZQqvD6k8JracZ3UHzfKlqkV f0Mo9VvFgWc7ehv0smRq+ivbnBUkdeDvQz9QCwJvCvtl7coZTutG5IqWIflaJfA3OKnz +eg6TePLKr/Rs5hVmNqbQxudQuCd6WXvVXIujXLwadCA7QPtjHojsyuwXhtbPzX8zGxz Og3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=sI6h5k66J716vMMrZDkOf++e8ZaDHw1O6KwZgtD+eDQ=; b=MgHFSfQ8WSZcNA8A8DxYX/aBnsiTtrMlen6WGq7hPtsCbYyYkoh2KlUvyXRMAliiYB CJ8GR0iXXcKomFoBMUO6BETCpRr0bU/4FnF0B3U1jiGCStt1dTPaWWuZJbHDrVl2ttWt WpV+VS1kxAgr4LJB37yNi72rCu735TcfQokeElEBj0vWTtmCRS9tzu8J1HfTN38w6CcK LDFaFlANYNDCboK6FuuYYgdH8+4Q+fGYMtryTaPbozHrMvp250o1b3O662+twYQ0LMCs 9XTZCfCI2XPl/jx5VF4YGEMlbhVGWyp/KXJdh1VZLPn2AputQyscfvf/v3rigtn2FiON 7D+w== X-Gm-Message-State: AOAM533d+LAQD8ukjFEnJ3uYs7Xp8s5zSJoevxvuRH91MazTnTcrefLk tXK07Fe82m8Jj1CFslJajnZWKlqBQ/I= X-Received: by 2002:a17:906:b851:: with SMTP id ga17mr31931473ejb.86.1625757502202; Thu, 08 Jul 2021 08:18:22 -0700 (PDT) Received: from avogadro.lan ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id ak16sm1103694ejc.17.2021.07.08.08.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jul 2021 08:18:21 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 46/48] hw/arm: move CONFIG_V7M out of default-devices Date: Thu, 8 Jul 2021 17:17:46 +0200 Message-Id: <20210708151748.408754-47-pbonzini@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210708151748.408754-1-pbonzini@redhat.com> References: <20210708151748.408754-1-pbonzini@redhat.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x630.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Thomas Huth , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alex Bennée We currently select CONFIG_V7M for a bunch of our m-profile devices. The last sticking point is translate.c which cannot be compiled without expecting v7m support. Express this dependency in Kconfig rather than in default devices as a stepping stone to a fully configurable translate.c. While we are at it we also need to select ARM_COMPATIBLE_SEMIHOSTING as that is implied for M profile machines. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Acked-by: Richard Henderson Message-Id: <20210707131744.26027-4-alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini --- default-configs/devices/arm-softmmu.mak | 3 --- hw/arm/Kconfig | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.31.1 diff --git a/default-configs/devices/arm-softmmu.mak b/default-configs/devices/arm-softmmu.mak index 0500156a0c..4114aa9e35 100644 --- a/default-configs/devices/arm-softmmu.mak +++ b/default-configs/devices/arm-softmmu.mak @@ -1,8 +1,5 @@ # Default configuration for arm-softmmu -# TODO: ARM_V7M is currently always required - make this more flexible! -CONFIG_ARM_V7M=y - # CONFIG_PCI_DEVICES=n # CONFIG_TEST_DEVICES=n diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 528f71bb9d..062fe94b64 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -296,7 +296,10 @@ config ZYNQ config ARM_V7M bool + # currently v7M must be included in a TCG build due to translate.c + default y if TCG && (ARM || AARCH64) select PTIMER + select ARM_COMPATIBLE_SEMIHOSTING config ALLWINNER_A10 bool