Re:The x86 architecture is the weirdo, part 2
by brucehoult on Friday April 22, 2022 @08:46PM
(#31130135)
RISC-V instructions longer than 32 bits are just a theoretical possibility at this point. An extension escape hatch for the future.
No one has done it, no one seems to be keen to be the first to do it, and even how the instruction length encodings work is not a ratified part of the spec -- it's just a proposal at the moment, even for the next step of 48 bit instructions.
There has been discussion of encodings better than the one proposed in the current spec, especially around instruction length encoding schemes that would make more opcode bits available in 80 bit instructions than in the scheme in the spec, so as to have a possibility of encoding 64 bit literals in an 80 bit instruction.
Re:The x86 architecture is the weirdo, part 2
by pm215 on Friday April 22, 2022 @10:13AM
(#31121778)
It can still get you into some extra corner cases for the insn fetch hardware to have to handle when an insn crosses a cache line boundary, though...
Re:The x86 architecture is the weirdo, part 2
by monocasa on Friday April 22, 2022 @09:58AM
(#31121599)
I don't think the instruction stream is self synchronizing; if you jump to the middle of an instruction there's no guarantee you'll ever get back to not parsing garbage.
I didn't put that very well. I didn't mean it was self-synchronising when executing, but that you can (I think?!) always find the next instruction boundary by looking at the bottom bits. At least, that's my understanding from reading that part of the user spec.
[0] See "Expanded Instruction-Length Encoding" in the user spec.