🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #491

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

#491
From: MitchAlsup
Date: Sat, 31 Oct 2026 18:27
36 lines
2837 bytes
Thomas Koenig <tkoenig@netcologne.de> posted:

> 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

That would add LDD-latency plus JUMP-latency to instruction-latency--
even if the index was extracted by HW. Probably around 5-6 cycles.
 
> > 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?

How do you think microCode works ??

>                                  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.
> 
Technical Details
Message-ID: <1793471234-5857@newsgrouper.org>
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!newsgrouper.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> <11c4dcm$102m6$1@dont-email.me>

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!newsgrouper.org!.POSTED!not-for-mail
From: MitchAlsup <user5857@newsgrouper.org.invalid>
Newsgroups: comp.arch
Subject: Re: Unimplemented opcodes via jump tables (was: interrupt handling latency and weird register use)
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> <11c4dcm$102m6$1@dont-email.me>
Date: Sat, 31 Oct 2026 18:27:14 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1793471234-5857@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857
Injection-Date: Sat, 31 Oct 2026 18:27:14 GMT
User-Agent: Newsgrouper/0.9.0