🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #480

Unimplemented opcodes via jump tables (was: interrupt handling latency and weird register use)

#480
From: Thomas Koenig
Date: Sat, 31 Oct 2026 09:45
31 lines
2919 bytes
Josh Vanderhoof <x@y.z> schrieb:

> Say instead it's for something called featurex and some processors 
> want it in hardware and some don't.  It'd be much easier for 
> someone writing the software if a standard sequence of 
> instructions for doing featurex was defined and new processors 
> that do featurex in hardware automatically checked call targets 
> and recognize when the instruction sequence matches featurex. 
> Then when the routine is called later uses the dedicated 
> instruction instead doing the call.

You could have instructions that either do things in hardware or
jump to a subroutine at a defined address from a jump table
index by opcode.  That would solve the problem, I think, and

> It's be really nice because the code would be identical for 
> everything and also run about as fast as possible on everything. 
> I have no idea how hard it would be to keep the track of which 
> subroutines are actually new instructions though.

this would be OK.

Has anybody actually done this?  Seems obvious, but maybe only
in hindsight, and could save the RISC-V compiler writers a
lot of grief, at least as far as compatibility is concerned, but
cost would be another matter.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Technical Details
Message-ID: <11c4dcm$102m6$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <87qzk0nejz.fsf@nightsong.com> <116d89d$27baf$1@paganini.bofh.team> <87ecfcagiw.fsf_-_@debian> <2026Sep1.225146@mips.complang.tuwien.ac.at> <11bpfm8$190ap$1@dont-email.me> <2026Oct27.171414@mips.complang.tuwien.ac.at> <1793120789-5857@newsgrouper.org> <11bsq36$36q1t$3@paganini.bofh.team> <1793202439-5857@newsgrouper.org> <ygnwlr084yt.fsf@y.z> <1793320218-5857@newsgrouper.org> <ygnjymy5uo2.fsf@y.z>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Thomas Koenig <tkoenig@netcologne.de>
Newsgroups: comp.arch
Subject: Unimplemented opcodes via jump tables (was: interrupt handling
 latency and weird register use)
Date: Sat, 31 Oct 2026 09:45:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <11c4dcm$102m6$1@dont-email.me>
References: <87qzk0nejz.fsf@nightsong.com>
 <116d89d$27baf$1@paganini.bofh.team> <87ecfcagiw.fsf_-_@debian>
 <2026Sep1.225146@mips.complang.tuwien.ac.at>
 <11bpfm8$190ap$1@dont-email.me>
 <2026Oct27.171414@mips.complang.tuwien.ac.at>
 <1793120789-5857@newsgrouper.org> <11bsq36$36q1t$3@paganini.bofh.team>
 <1793202439-5857@newsgrouper.org> <ygnwlr084yt.fsf@y.z>
 <1793320218-5857@newsgrouper.org> <ygnjymy5uo2.fsf@y.z>
Injection-Date: Sat, 31 Oct 2026 09:45:59 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1051334"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/qefxCfQHui+4uZwdWkdtY73m3eOqu5bg="; posting-host="3250d5c01ba2f633584bb5d478b5241b"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:lHXvzWsa/hSAEIFjEqa/IA8Z4oU= sha256:tIXbh4626E1EDs50Do95Zt5hUGV9OfSZM7oG5lzpY4g=
	sha1:f5N9gJoGSQhpNTn+Wz5Wg/XoPzk= sha256:7Ql5Y88hEZkow3F84OGT27L1BaYfAZz5XDqriQn1IJo=