From patchwork Wed Jun 28 06:32:30 2023 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: 697215 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp4181314wrm; Tue, 27 Jun 2023 23:34:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+1BPoJtMKfB/1huNqFQehjN+wxoqpnK+tBtF4dojhnX/+PaXD2wONCoVnxXdtxv5LpvEU X-Received: by 2002:a05:622a:1a8d:b0:401:eafa:b300 with SMTP id s13-20020a05622a1a8d00b00401eafab300mr6745933qtc.40.1687934051709; Tue, 27 Jun 2023 23:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687934051; cv=none; d=google.com; s=arc-20160816; b=GJUjbDNqSR03+52cS4lpmAMOWeb7C1zsFFMLcKHUK6KruXBzYI0cyXZ4oWTj7pQGaq X4/MeSVLioTw6tZTMMr+h8leLqZ8HHi7IT/V62yhNu123aW3664IBsCbVVJka32PQfkR Ks5GWkJAs68AYMJIUIZH1Y/M4FUWVdw7jBF6LnSa7DYGWwtGr37Q0z+faC49oqScnH4m 4bvepctfID+YyBl5Dy/E22u8ChuV+aehhSdM5eP1MyxzkH32jT5EBUbU8M+fCN88+c7g 3cCA53kLTB0T7JNsv4ibP24jQb43VAyZRWTiSD/uRF6qkta2uZIfWlGiytdottYudcqJ WYIA== 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=w/a5B7ueBaDGLM1E0Zx9Ja1fFo71IXXbChenEJIm/yg=; fh=w8WbWO/y/5d1qF1XZLs1bnXIhHguLPbKmLY20PMg0gU=; b=nx/iBj6Kl3WjKY4YqKZb/bF7OojLPj9HguHYVx4wo2KXg4IaNc0P1nNM1fF53zzaX1 ohNLQPpZxzpLirRZtR+sgDdkgCgvSslRWhxX+0yXTzAf9L6xlr0e3dDXr/eIIhmgyPjx WyRjDCpaSXogWxmXq0QyvvFgsN+JvA54V+S98qsc5lrkbhR920gIaeacfFyz+tNLkoG4 35DoLzcEsqQaq6bwTcShKEHdrvOMhxk3fEWJkF2Kze9KyezXOSDgusY2A0X3f7mhY0/X E6Uuvn3VzFqguoDhBrYJPOKhsj8CgenxwyTpUKuDsQguZ9EqvN3gVfyYdw5pXv3IScE7 H6ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hywqkcIu; 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 k16-20020a05622a03d000b003f6e171c80bsi3993992qtx.648.2023.06.27.23.34.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Jun 2023 23:34:11 -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=hywqkcIu; 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 1qEOjM-0002dB-5z; Wed, 28 Jun 2023 02:32:44 -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 1qEOjK-0002cp-Pe for qemu-devel@nongnu.org; Wed, 28 Jun 2023 02:32:42 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEOjJ-0002k5-1A for qemu-devel@nongnu.org; Wed, 28 Jun 2023 02:32:42 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-313e1c27476so504900f8f.1 for ; Tue, 27 Jun 2023 23:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687933958; x=1690525958; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=w/a5B7ueBaDGLM1E0Zx9Ja1fFo71IXXbChenEJIm/yg=; b=hywqkcIu+gV8llYI++B+InjuVQB3qyh59ZmIcFNpihTwVEXl21bIK/ChS1hNLm9nap ywhfBOcoGWrX6DIVhBwgs9z7p3gVuODDu/ZAPJ6i9LjwqZFvQfLsdB9jMRZRJ1ebbuHw 1XaCY/lgHQjJl7XUfBUxtOvjicYwMafc5ZZbHMWfEzDU/pguYFIN/oxcT0YTrLiSqKQz n6l2eWAd3yuLqHOQv6xivOuLG0Fc6sawyZUPOBzXG48Hz5cpDJ/DJzm6wuNQAECAyA2I YBVSiCFZQ0n9rGoPIITAtEHm76o1VJ2wAurYNjCZSuZfGTxEnE9CPhcL3qbnCzwfDKk+ R9Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687933958; x=1690525958; 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=w/a5B7ueBaDGLM1E0Zx9Ja1fFo71IXXbChenEJIm/yg=; b=kB0P803ejilFAiv+oE0oiQsrM0VAeOjI5Fmy74nDZJ8ljuVx5wxyWGJpFaAH0CQYUg OpOzq9afIkHGBln3flMoLOz/u2jSLkz0zL8QfHsDgvss38eGTV2Ug/pwEuIVOT22uhbp g7hQSvc2SSZIn1j0boQlzmnXtjuRH9JYyjr0hBe/jfiC+4JtGPp0nKEZse+vZkB4OHb5 7vkYM0DBs1RG3hkRBGMDO/M7Y/IJcQn2Krxdr23Ny/ByMe0iNwyihFRR0MCtnYtNYpIN IiPXWZD0fw159/zZRUCANgpICj3q218DU6xRN7ZQaJhxmIctiNe4Pk3r2A0ArACW7e8s mgZQ== X-Gm-Message-State: AC+VfDzZVjoDcKCqlxQi1GexVqjEDHrpEgcp7uyfZPS/Vjljus+rRurx MHef2xxx5wwqj1fmcUnqIaacSVUr7WheYrZX1ts= X-Received: by 2002:adf:fa52:0:b0:313:f5ea:44f7 with SMTP id y18-20020adffa52000000b00313f5ea44f7mr453961wrr.35.1687933958187; Tue, 27 Jun 2023 23:32:38 -0700 (PDT) Received: from m1x-phil.lan ([176.187.207.229]) by smtp.gmail.com with ESMTPSA id cw8-20020a056000090800b00311d8c2561bsm12365018wrb.60.2023.06.27.23.32.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Jun 2023 23:32:37 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Bin Meng , Palmer Dabbelt , Weiwei Li , Liu Zhiwei , Daniel Henrique Barboza , qemu-riscv@nongnu.org, Alistair Francis , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= Subject: [PATCH v2 0/4] target/riscv: Misc header cleanups Date: Wed, 28 Jun 2023 08:32:30 +0200 Message-Id: <20230628063234.32544-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=philmd@linaro.org; helo=mail-wr1-x432.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, T_SCC_BODY_TEXT_LINE=-0.01 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 As requested by Daniel in [1], these patches are extracted from my "target/riscv: Allow building without TCG (KVM-only so far)" series and cleanly rebased onto Alistair's riscv-to-apply.next. [1] https://lore.kernel.org/qemu-devel/59b5b342-8940-5ac1-0cec-8c136c4916d8@ventanamicro.com/ [2] https://lore.kernel.org/qemu-devel/20230626232007.8933-1-philmd@linaro.org/ Philippe Mathieu-Daudé (4): target/riscv: Remove unused 'instmap.h' header in translate.c target/riscv: Restrict sysemu specific header to user emulation target/riscv: Restrict 'rv128' machine to TCG accelerator target/riscv: Restrict riscv_cpu_do_interrupt() to sysemu target/riscv/cpu.h | 5 +++-- target/riscv/cpu.c | 20 ++++++++++++++------ target/riscv/cpu_helper.c | 9 ++++----- target/riscv/csr.c | 2 ++ target/riscv/translate.c | 1 - 5 files changed, 23 insertions(+), 14 deletions(-) Acked-by: Alistair Francis