From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43D1E27B50F for ; Fri, 26 Jun 2026 04:11:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782447079; cv=none; b=qN/MwGHsnU1MM70vg3Hfre+Nj7qU5V5Dvmcj9ACcuneYgQ2/qhruKJo5yIHrcytnew1pv6Q2e7h+2gOF3sUNW/4ZokMs6vdacqrY0FIBFfrckBHJGrZ0g4cZgxYfksxrTtyi1DRzqdxrgNVdu2sMmbWCRsYz43zQZLepO46o69g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782447079; c=relaxed/simple; bh=Em9JTvibovHcsPxMft2msWemAJ7bEozK0uiZFUmDUO8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=p8PrJtahQ7tYsxT32IW/0YTB4PMTSfVlQL4jWYvMJK4rSMoZpFZIMxKo8XM33hFUBG1MsKxTXrqyePgzgI7kJXH3x38u41kUzO/JFuYkDxfSuK7SEYPzDCr+Lkz5tfmGx+gjKive1SlQ3oQ262kQyHDjniY5V7ycB+LZuytI5Dc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=z6k7leud; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=vAmJIdJ2; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="z6k7leud"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="vAmJIdJ2" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1782447076; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Em9JTvibovHcsPxMft2msWemAJ7bEozK0uiZFUmDUO8=; b=z6k7leudZGugP1QZHCR67prcjbq9QhGyFNpxyBuG86yGQ5JXtvt+NO4Mnex0BAMZxKCaUv KKAx5lUH3SLUizOIxjjBvggymQM4Cl8FPH46cgTItAK6xL+InTP8VpQz6le18u60MvxWdy wVO5OGIVGYgZw7zvH8HMYaIqO9ykbfk7ikgQAXtBSTj+ZY8l8EteQFwRx2w/nJxXIYoG7L 9ZfGgUeLTQ1l1Qlzzd2Sg+vrNNGHxxxUHTYVRPneHpiiITmDCmWldW8h0jQfgxFOs2Ui3f whnMbf0BgymZkPBuSt5FSa4wU7+k06oZFUba3apGlQV78m5Vig0fCEWysBFh6g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1782447076; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Em9JTvibovHcsPxMft2msWemAJ7bEozK0uiZFUmDUO8=; b=vAmJIdJ2EyKoeBnn300FRMiebGzlDwCTt9jwFS4R3zdYCTw4/aqjMkxY4/8Kcrz7x/AIQV RGBXm4v7bnWeQABg== To: Xiaofeng Yuan , pjw@kernel.org Cc: palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Xiaofeng Yuan Subject: Re: [PATCH] riscv: probes: simulate c.jal instruction In-Reply-To: <20260626003735.9066-1-xiaofengmian@163.com> References: <20260626003735.9066-1-xiaofengmian@163.com> Date: Fri, 26 Jun 2026 06:11:14 +0200 Message-ID: <87wlvm3pr1.fsf@yellow.woof> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Xiaofeng Yuan writes: > Add simulate_c_jal() which saves the return address to x1 (ra) > and sets the program counter to the target offset, matching > the behavior of c.j (which is already simulated) plus the > link register write that distinguishes c.jal from c.j. Please reuse the existing c.j simulation to reduce code duplication. Nam