From patchwork Tue Jan 21 14:23:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 13946318 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 07D72C02182 for ; Tue, 21 Jan 2025 14:24:44 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1taFAW-0000LD-Js; Tue, 21 Jan 2025 09:23:52 -0500 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 1taFAV-0000KR-Id for qemu-devel@nongnu.org; Tue, 21 Jan 2025 09:23:51 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1taFAU-0002xo-4H for qemu-devel@nongnu.org; Tue, 21 Jan 2025 09:23:51 -0500 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-435f8f29f8aso40947815e9.2 for ; Tue, 21 Jan 2025 06:23:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737469428; x=1738074228; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UG0trGBZa/zHcAjVBtljvnuPb8rCcRdqGnikIpWwT/E=; b=tPpVNRT9Sz25zVayH8cmdU+l4I6O2mNyYgnqUIL6SuscPBIsJijtPDMEaSwv2GgHML 0Cyo00LkAt+/ZbtvMgsxV4dELVvWDLVHqHJ6fJ14mKyyrCQcwRCqczIu88ZttWYysXFp uioiJLxxWU0539vz71Il3kolY6SCHZ5sGGf3e014BC7bBPUrwezcCA4UBJPMK/SFm0M2 mQeHwhxURc31g9fwd76Sv429j49LABl1T+ux2yThdDVsCqJDvATemD4Uvq8W1vLDWYjk ub2Y2c5axkSSYST0Kt4hadt+2aGmi2oHTORWD2PQOymwZMTdtMUlGF9lnqZRJxoZzmhV LxYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737469428; x=1738074228; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UG0trGBZa/zHcAjVBtljvnuPb8rCcRdqGnikIpWwT/E=; b=fJW96WDEo6JQiTnu1w+vOaubAoJqpR+HlSlx5oc6TkZZ0BlNQT+ZdT17Q0gv1zuGi3 U39KNvEswfiH9s0+GMp9Pvjd8B4NdTTMw5U+GNyYzEwHkxdhwqy/cri4wd6AoLlbi3YI Xi0B8D5g9sjUMjx4Y0BqjyctPahR/GnwnYaOZu/8j5C2qA4pwvX8T/2f8Ki5zFS2rCE1 CbWlyvC5NTwpX5kD7MCUXa/ghYg3eSxunYweRx2hos5Q6DAM30H+L/XRZNMrmGbZbcAf yDl+sLJWnu2xdPX6opZ/oQYi4lB89E7xj2JViaPOLFhCSAGPWcPIUAqf5kGJAC9Ylkws jSnQ== X-Gm-Message-State: AOJu0Yxvaa6iz2GTVfafXlHt2q/dQF3eTI5QLa1mVlrMOBjNsFmyH+Z9 G0kXWL6QKxi0Eb3CwdlFwKHBehP4nhC3xFnwF2ogJKBjg3FKTRGHrvlzZMm0CYcOfCMP0sk/kwU cMxY= X-Gm-Gg: ASbGnctB1OGbZte10wcQ8o9k60aRz4wTlHXIzoF9s1bErdb8vy5IoOGuoPnLGAReafk JqycnrKMmcULn27LqdR2OsCVA6jjHFfWGnNK3vu8E0b/fllDbGA7+mZUflsmx93J+ylHfxk/ry9 5BuP5MQUygFa+McVpp1G1DQIrvrp3oesjhWpRgl3j8Bf59/LggLXOuVi3jLqfe2BLJdgUOjrnYl RiFrB8x6/e9S7aXsBxhxt0+9kU8vAuXDeyLUCW7YJBeoc9TFYIRCNrs9S/TMsh9kF5Adl9WnQjM RCUJmzZCAQBt4rPxD0ngwc6aZjWeOj3FN8v3NJLZxzE8 X-Google-Smtp-Source: AGHT+IGjuV68zkjMzC56OZPOHSd4ONXCv+cHsFdMxckEbUNUtN6Rb1XshAzelw3fkl/lkUre+ozVBA== X-Received: by 2002:a05:600c:3d05:b0:434:f767:68ea with SMTP id 5b1f17b1804b1-438b0dc9532mr10630425e9.5.1737469428481; Tue, 21 Jan 2025 06:23:48 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4389041fec5sm184309165e9.19.2025.01.21.06.23.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 21 Jan 2025 06:23:48 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, qemu-ppc@nongnu.org, Paolo Bonzini , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PATCH 01/28] target/hexagon: Ensure not being build on system emulation Date: Tue, 21 Jan 2025 15:23:14 +0100 Message-ID: <20250121142341.17001-2-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250121142341.17001-1-philmd@linaro.org> References: <20250121142341.17001-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Currently only user emulation is supported. Assert no target code is built for system emulation. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Brian Cain --- target/hexagon/cpu.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/hexagon/cpu.h b/target/hexagon/cpu.h index 79e60d4bfa1..f78c8f9c2a0 100644 --- a/target/hexagon/cpu.h +++ b/target/hexagon/cpu.h @@ -26,6 +26,10 @@ #include "mmvec/mmvec.h" #include "hw/registerfields.h" +#ifndef CONFIG_USER_ONLY +#error "Hexagon does not support system emulation" +#endif + #define NUM_PREGS 4 #define TOTAL_PER_THREAD_REGS 64