public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: jacob navia <jacob@jacob.remcomp.fr>
To: Jan Beulich <jbeulich@suse.com>
Cc: Binutils <binutils@sourceware.org>
Subject: Re: Defined illegal instruction
Date: Tue, 13 Feb 2024 10:05:01 +0100	[thread overview]
Message-ID: <3CE04C54-E1A4-44FF-95ED-9604464828DC@jacob.remcomp.fr> (raw)
In-Reply-To: <24574398-1388-49a4-b51c-51d1496bc228@suse.com>



> Le 13 févr. 2024 à 08:20, Jan Beulich <jbeulich@suse.com> a écrit :
> 
> On 12.02.2024 21:43, jacob navia wrote:
>> In my machine, the code you proposed gives « unrecognized opcode. Are you sure ?
>> 
>> I just copy/pasted the exact code that you sent me.
> 
> I didn't send you any code. What I sent you was a reference to a directive,
Yes, I know, the .insn directive. 
> 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".
> 
> 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.
> 
> Second: Please don't top-post.
> 
> 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’t have the details in my memory. 

Besides, I can’t 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) 

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… 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.




      reply	other threads:[~2024-02-13  9:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-09 17:03 jacob navia
2024-02-09 17:21 ` Peter Bergner
2024-02-10  0:03   ` Andrew Waterman
2024-02-10 12:56     ` jacob navia
2024-02-11  0:50       ` Andrew Waterman
2024-02-12  7:29       ` Jan Beulich
     [not found]         ` <C47C292B-6017-4D1C-BEEC-E4D9D88BBD8E@jacob.remcomp.fr>
2024-02-13  7:20           ` Jan Beulich
2024-02-13  9:05             ` jacob navia [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CE04C54-E1A4-44FF-95ED-9604464828DC@jacob.remcomp.fr \
    --to=jacob@jacob.remcomp.fr \
    --cc=binutils@sourceware.org \
    --cc=jbeulich@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).