🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #355

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

#355
From: Anton Ertl
Date: Mon, 26 Oct 2026 17:45
47 lines
3960 bytes
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.  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, and even once they are there, would require so many cycles
that it is more efficient to throw away everything that's in flight,
and then start from the architectural state on resuming from the
interrupt.

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID: <2026Oct26.184554@mips.complang.tuwien.ac.at>
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: <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>

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: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.arch
Subject: Re: Interrupts in OoO (was: Microarchitectural support for counting)
Date: Mon, 26 Oct 2026 17:45:54 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 47
Message-ID: <2026Oct26.184554@mips.complang.tuwien.ac.at>
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>
Injection-Date: Mon, 26 Oct 2026 18:05:42 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="841184"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/jxmabx871kuZgkbOfCgzD"; posting-host="0a64b28e55ae237173e3d1fb006b83ef"
Cancel-Lock: sha1:jCzn90yXOpGGX5YgDyppGRNxY4s= sha256:bGs0snTXDnxjL0NgQqA0Vdmgoj3si2TrnoBHfAo4wCE=
	sha1:0s7v8nwxO/9Xd+LL5VZcbj12hLE= sha256:z9A/arqCIFF2frbaGgqwDdnCkSXpD3vtGvH0ynUBcX8=
X-newsreader: xrn 10.11