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 52D14C7EE23 for ; Tue, 23 May 2023 11:46:11 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1QRy-0003rV-Du; Tue, 23 May 2023 07:45:11 -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 1q1QRu-0003qX-Sl for qemu-riscv@nongnu.org; Tue, 23 May 2023 07:45:07 -0400 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1QRr-0001mi-3x for qemu-riscv@nongnu.org; Tue, 23 May 2023 07:45:06 -0400 Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-39819d3c218so867088b6e.1 for ; Tue, 23 May 2023 04:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1684842299; x=1687434299; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tiwh3g8qWZu24azv1kh/REuSLwR7On6jD0V4y8x6cvk=; b=LuiClhY8evOKdCapPm/vr0Q0PiuNcBa3g0sIZGnnUXOjwSgiMzmLZXyknwUt5M0yMX nHZMxHQ4Fj3OP432Y5v+i1tTxiU9wIhSf6Tggp+y24E/Bz5oADwIpUzzmoUvYoxbeLse wgouTKJhp1W6jQw0y5LovX+anF2H5KYvDBbh6DjuiFnUa4RipHISqorxa/KRZXfap72J U6U/aAcdXW00w3yxOqUTMpCQNCG48dK9HCYMcjQclb8VTpXAcMtRbcl6cohWiG8f7GVZ k7jbORJAMti7KyPHPrFkViJAvQcftAjMOmCiE1LmusiPMik7SY72hwwwOZOS1gKZ+KCD I+zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684842299; x=1687434299; 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=tiwh3g8qWZu24azv1kh/REuSLwR7On6jD0V4y8x6cvk=; b=JjIG/5xSob2BBGIUDaaQEfaIcRBr8vhSdEOc/WM64nfUG2zYrLVFuk7Stemt7Y9cLK m/AJLtHpxz0GlJPUHFpfAMTO0B/O4jaTeaxldUCgDruB2Ngc3fLeI/d3v0Xv0yJvXtKM HXeRPA58RwgfLBiM+XJguVxoYxWbYZKFoWr5HdQ4eopHHbB+nxbLwgqu1VbjcWUnFIS1 WktYk03zPaPSa61YCVAQum4rNGS9lg2DdSj5osdCy91bUUvUCoeC9yGsYOOn3qfKnAo2 +mZQqNlpAC48ysujlcOgtbjWFiHs2YaMu+cBTnqkbfp3+tLP4jVMNPZ733nLwrP6AK5s lFQA== X-Gm-Message-State: AC+VfDxOmQQImru8k85N2WcX7QdeuAmaq5f30OkGS074DMFT3WK8o88j oZQlDGQ2G6cQn3JXNEhKPoo+cA== X-Google-Smtp-Source: ACHHUZ7XkI3mK8KfsTItHThimuueHMOF4qmQGVgVT0kbgnpWoay1fPwrKO40pYUln1652yp0vajTaQ== X-Received: by 2002:a05:6808:191:b0:398:10ad:e857 with SMTP id w17-20020a056808019100b0039810ade857mr2928537oic.48.1684842298678; Tue, 23 May 2023 04:44:58 -0700 (PDT) Received: from sw05.internal.sifive.com ([64.62.193.194]) by smtp.gmail.com with ESMTPSA id e3-20020acab503000000b003924c15cf58sm3799772oif.20.2023.05.23.04.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 04:44:58 -0700 (PDT) From: Tommy Wu To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: frank.chang@sifive.com, alistair.francis@wdc.com, apatel@ventanamicro.com, palmer@rivosinc.com, dbarboza@ventanamicro.com, bin.meng@windriver.com, liweiwei@iscas.ac.cn, zhiwei_liu@linux.alibaba.com, Tommy Wu Subject: [PATCH 0/2] Refresh the dynamic CSR xml after updating the state of the cpu. Date: Tue, 23 May 2023 04:44:52 -0700 Message-Id: <20230523114454.717708-1-tommy.wu@sifive.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=tommy.wu@sifive.com; helo=mail-oi1-x235.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-riscv@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-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org The realize function of IMSIC will force select AIA feature and setup CSRs, but the dynamic CSR xml is not updated, so we cannot print the AIA CSRs in the remote gdb debugger. In the patches, we provide a function to refresh the dynamic CSR xml, and refresh the xml in the realize function of IMSIC. Tommy Wu (2): target/riscv: Add a function to refresh the dynamic CSRs xml. hw/intc: riscv_imsic: Refresh the CSRs xml after updating the state of the cpu. hw/intc/riscv_imsic.c | 4 ++++ target/riscv/cpu.h | 2 ++ target/riscv/gdbstub.c | 12 ++++++++++++ 3 files changed, 18 insertions(+) -- 2.38.1