🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #381

Re: Interrupts in OoO (was: Microarchitectural support for counting)

#381
From: MitchAlsup
Date: Tue, 27 Oct 2026 16:39
59 lines
3893 bytes
anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:

> quadibloc@invalid.com (John Savard) writes:
> >On Sat, 05 Oct 2024 17:57:12 GMT, anton@mips.complang.tuwien.ac.at
> >(Anton Ertl) wrote:
> >
> >>Ok, it's more efficient to insert an interrupt call into the
> >>instruction stream in the decoder: all the in-flight instructions will
> >>be completed instead of going to waste.  However, the interrupt will
> >>usually be serviced later, and, as you point out, if the instruction
> >>stream is redirected for some other reason, you may have to replay the
> >>interrupt.
> ...
> >An interrupt, on the other hand, just needs to get serviced. The
> >process being interrupted just needs not to be disturbed by it.
> >That leaves several alternatives.
> >You could somehow make the machine act as if it has a second core just
> >to serve interrupts. In fact, some early architectures anticipated SMT
> >by having a second set of registers for privileged operation.
> 
> That's actually something that one can do relatively easily with cores
> capable of SMT: leave an SMT thread on one core (or n, if you want to
> be able to serve n interrupts at the same time) unallocated on an
> otherwise powered-up core, and have the interrupt controller direct
> the interrupt at one of these threads.  The interrupt can be serviced
> right away, without throwing away work that has been done on the other
> core.  If the interrupt thread gets priority on competetivelt
> allocated resources, that will minimize the interrupt latency.
> 
> >Or, since interrupt routines _are_ at kernel level... when there's an
> >interrupt, save the whole internal machine state, including the entire
> >pipeline. After all, since interrupt routines are privileged, they can
> >use a special return instruction that sets up the machine's internals
> >instead of just restoring registers and branching somewhere.
> 
> This stack puke approach has been tried on various machines such as
> some (all?) 68000 family members, but all machines that did this have
> vanished from the general-purpose computing market.

Agreed.

>                                                      For OoO machines,
> the internal state is relatively large, and puking it on the stack and
> swallowing the puke back is something that would require additional
> data paths,

Also agreed.

>             and even once they are there, would require so many cycles
> that it is more efficient to throw away everything that's in flight,

Yes, Yes, Yes ...

> and then start from the architectural state on resuming from the
> interrupt.

So, why not just make the transfer of control precise !
> 
> - anton
Technical Details
Message-ID: <1793119166-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: <2024Oct3.160055@mips.complang.tuwien.ac.at> <vdmrk6$3rksr$1@dont-email.me> <LyELO.69485$2nv5.62232@fx39.iad> <TdWLO.282116$FzW1.158190@fx14.iad> <963a276fd8d43e4212477cefae7f6e46@www.novabbs.org> <8IcMO.249144$v8v2.147178@fx18.iad> <2024Oct5.195712@mips.complang.tuwien.ac.at> <6adbf319.9129937@news.eternal-september.org> <2026Oct26.184554@mips.complang.tuwien.ac.at>

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: Interrupts in OoO (was: Microarchitectural support for counting)
References: <2024Oct3.160055@mips.complang.tuwien.ac.at> <vdmrk6$3rksr$1@dont-email.me> <LyELO.69485$2nv5.62232@fx39.iad> <TdWLO.282116$FzW1.158190@fx14.iad> <963a276fd8d43e4212477cefae7f6e46@www.novabbs.org> <8IcMO.249144$v8v2.147178@fx18.iad> <2024Oct5.195712@mips.complang.tuwien.ac.at> <6adbf319.9129937@news.eternal-september.org> <2026Oct26.184554@mips.complang.tuwien.ac.at>
Date: Tue, 27 Oct 2026 16:39:26 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1793119166-5857@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857
Injection-Date: Tue, 27 Oct 2026 16:39:26 GMT
User-Agent: Newsgrouper/0.9.0