From patchwork Thu Aug 24 09:23:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: gaosong X-Patchwork-Id: 716506 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp1234718wrp; Thu, 24 Aug 2023 02:25:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFVTFaOnushAAan3U3jlk8khkuA2Ux5G9CF5d9f7KJUvL5n3CnW144cLH2F4Tvtu8gScZU+ X-Received: by 2002:a0c:b31a:0:b0:647:2b16:d154 with SMTP id s26-20020a0cb31a000000b006472b16d154mr15582139qve.1.1692869153089; Thu, 24 Aug 2023 02:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692869153; cv=none; d=google.com; s=arc-20160816; b=GN6LK/YP/uWT/R7xqwchEYEJx8wwCkZPGWTd+qlJxM8l2LE+k9XaQabXA2LVGQJzMs lTgRtbaSIb92P66ycWcW9ZXSXv6sUQV5IFgFeJLZEK8HB1156tvlTa7LItSiNdcVD/VE wxg39xxA22D2U3V+teLZMevKr7MfIPRv9ulOsDZGM9CIVM1gWrNklf8+ujMwMYt9RXYN TIu0EoeEFt59WcSlF13hrj8i2aRhf0+onXQ6sLFCheT7RFX8e84T6Zxxe5hVUA4MxU0h 2VTDRvqJk0b8Dhcg7cijI6CSlKquw64pthEYDT/bCXlgJyARNVJvn1DvWaZJY7bP5OMp LNMw== 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:references:in-reply-to:message-id:date:subject:cc:to :from; bh=p9la9lNu/jOCV5YXPYoaFcz3EdNygCBwsPxoxELdFDI=; fh=64Br0Hu6lV8heewipdJI9p0HjLAy9hStM6+wPm6jfNs=; b=mgcn2tmekXsvSjeIa6BjRjbMRbtALOGyysVDd8ehvum68Zs/iMkyxF+XUQBCny0s17 HX8e0K0/YOyECCqVyL2FFmGJ9Gg89Pi8FFQKB7BTjkKRS0A2tIuZmI28psTpzkkrskqt 3fBA3s8o5sGNTM77+HSFUxlZp2AZUFa5yzAwC22VmMPlQRBmBia3dyVJVn+q7q6XpmJ1 diQgLfq/Ii8df6MMbs65lzM71H9avV7E2IUr95TWSFrmviX3SfczA1rRXnk63TqSUS61 75qo3o14y8CTG8jP0pDNejqZDAFgZ3aT1m0QqSwF5FWujZvBfawoZ0khYsOOgFCzdCDp +QbA== ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w10-20020a0ca80a000000b006300118fcf3si8096787qva.605.2023.08.24.02.25.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Aug 2023 02:25:53 -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; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZ6Zt-0003fE-Iq; Thu, 24 Aug 2023 05:24:33 -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 1qZ6Zq-0003UE-C7 for qemu-devel@nongnu.org; Thu, 24 Aug 2023 05:24:30 -0400 Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZ6Zk-0003Ip-UF for qemu-devel@nongnu.org; Thu, 24 Aug 2023 05:24:29 -0400 Received: from loongson.cn (unknown [10.2.5.185]) by gateway (Coremail) with SMTP id _____8CxtPC+IedkLXkbAA--.56860S3; Thu, 24 Aug 2023 17:24:14 +0800 (CST) Received: from localhost.localdomain (unknown [10.2.5.185]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxJ826IedkJjhiAA--.40637S3; Thu, 24 Aug 2023 17:24:13 +0800 (CST) From: Song Gao To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, richard.henderson@linaro.org, =?utf-8?q?Philippe_Ma?= =?utf-8?q?thieu-Daud=C3=A9?= Subject: [PULL 01/31] target/loongarch: Log I/O write accesses to CSR registers Date: Thu, 24 Aug 2023 17:23:39 +0800 Message-Id: <20230824092409.1492470-2-gaosong@loongson.cn> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230824092409.1492470-1-gaosong@loongson.cn> References: <20230824092409.1492470-1-gaosong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8DxJ826IedkJjhiAA--.40637S3 X-CM-SenderInfo: 5jdr20tqj6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Received-SPF: pass client-ip=114.242.206.163; envelope-from=gaosong@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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 From: Philippe Mathieu-Daudé Various CSR registers have Read/Write fields. We might want to see guest trying to change such registers. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Song Gao Message-Id: <20230821125959.28666-2-philmd@linaro.org> Signed-off-by: Song Gao --- target/loongarch/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index ad93ecac92..7107968699 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -544,6 +544,8 @@ static void loongarch_cpu_realizefn(DeviceState *dev, Error **errp) static void loongarch_qemu_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { + qemu_log_mask(LOG_UNIMP, "[%s]: Unimplemented reg 0x%" HWADDR_PRIx "\n", + __func__, addr); } static uint64_t loongarch_qemu_read(void *opaque, hwaddr addr, unsigned size)