From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.remcomp.fr (mail.remcomp.fr [144.76.29.216]) by sourceware.org (Postfix) with ESMTP id 202E43858C31 for ; Tue, 13 Feb 2024 09:05:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 202E43858C31 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=jacob.remcomp.fr Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jacob.remcomp.fr ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 202E43858C31 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=144.76.29.216 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707815115; cv=none; b=ZJ3w/YcQnYV5JA7Nj7ykK6zUZNnF+tciVW9WhawUedGyTXpTlwz5IYmSapklyfL/bFMeNtZ9dHjsujqYnnJx/bjatrQ5eVrp1Zc6rXkyfHQm1k4NmVGZO+wZBm6EGTwWP+S75qeTTb28lzK+s02ZlnwNzXdvrzWZZ2fBu27qq7M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707815115; c=relaxed/simple; bh=nVAXSFoInXA407quILO+iLjXbTcXn0yy/Y+6q8i7DSA=; h=Mime-Version:Subject:From:Date:Message-Id:To; b=oiSq5CFKPkzzuTA8m/p54pplxxWT73PSWJx8qwUyelnbXKqKGQnA2fiU67p2iTR35DnPwqBqGvLDWPp7BDrvhbg+lZbiAZxoQ1Kassppa+MFX151PqSkBtYIt/s7uvI/ir4FgfDJ82+lm52i67/Wev4bJOzHy4tltFF6MoksTPw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtpclient.apple (lfbn-idf3-1-253-13.w90-22.abo.wanadoo.fr [90.22.252.13]) (Authenticated sender: jacob) by mail.remcomp.fr (Postfix) with ESMTPSA id 0C95F40068; Tue, 13 Feb 2024 09:05:12 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Subject: Re: Defined illegal instruction From: jacob navia In-Reply-To: <24574398-1388-49a4-b51c-51d1496bc228@suse.com> Date: Tue, 13 Feb 2024 10:05:01 +0100 Cc: Binutils Content-Transfer-Encoding: quoted-printable Message-Id: <3CE04C54-E1A4-44FF-95ED-9604464828DC@jacob.remcomp.fr> References: <4EF79A76-0C4A-492C-95E5-F12B338F637D@jacob.remcomp.fr> <6c936101-c79a-40b0-b627-cc6d8e741d43@linux.ibm.com> <80629157-361A-457F-81E1-21D2D23DD99F@jacob.remcomp.fr> <924c9ff6-4583-40b7-8099-4c48baf4dbaf@suse.com> <24574398-1388-49a4-b51c-51d1496bc228@suse.com> To: Jan Beulich X-Mailer: Apple Mail (2.3774.300.61.1.2) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > Le 13 f=C3=A9vr. 2024 =C3=A0 08:20, Jan Beulich a = =C3=A9crit : >=20 > On 12.02.2024 21:43, jacob navia wrote: >> In my machine, the code you proposed gives =C2=AB unrecognized = opcode. Are you sure ? >>=20 >> I just copy/pasted the exact code that you sent me. >=20 > I didn't send you any code. What I sent you was a reference to a = directive, Yes, I know, the .insn directive.=20 > which of course needs using with appropriate operands. Without you = quoting > what you actually used, I can also only guess that maybe you omitted = the > leading dot; else I couldn't explain "unrecognized opcode". >=20 > Further, two formal requests: Please don't send private mail on = technical > matters. You started this thread on the binutils list. It should = remain > there. I've therefore restored at least that Cc. >=20 > Second: Please don't top-post. >=20 > Jan OK Jan, this is just a misunderstanding. I thought you sent me an actual = directive, without looking into the the .insn directive again. I wrote = the doc for that assembler directive some months ago, so I didn=E2=80=99t = have the details in my memory.=20 Besides, I can=E2=80=99t find the official doc for the 32 bit defined = illegal instruction, I have made somewhere a mistake, since I do not = find it in the official doc ( The RISC-V Instruction Set Manual: Volume = I Dec 2022)=20 There is only a 16 bit defined illegal instruction. For machines not = supporting compressed instruction there is nothing as far as I can see, = so the work around proposed (writing to a read only CSR) is OK. In any case, we can drop the .long 0 proposal that I did, and I will = write only the two existing instructions (unimp and c.unimp). Thanks for your help and I promise not to top-post=E2=80=A6 I sent you = my answer as a private message to avoid cluttering this group with too = detailed technical discussions, but if you prefer I will always pass = through the group, no problems with that.