🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #320

Re: Interrupts in OoO

#320
From: Robert Finch
Date: Sat, 24 Oct 2026 01:12
42 lines
3763 bytes
On 2026-10-23 7:57 p.m., John Savard wrote:
> 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.
> 
For Q+ one build option is similar to this. A poll-for-interrupt 
instruction is periodically inserted into the instruction stream 
(approximately every 100 instructions) when micro-ops are translated and 
queued (could be the beginning of the decode stage). The poll operation 
is a special form of branch and then handled by the branch logic.

The default Q+ build just has a hardware-interrupt flag on the pipeline 
registers, set at the fetch stage. When the pipeline reaches commit the 
flag is checked and interrupt processing takes place if the flag was 
set. Because it is a separate flag the processor knows to honor it even 
if the instructions are no longer valid.

> A _trap_ can be a problem on an out-of-order machine, since traps
> result from exceptions, and so they have to be tied to the instruction
> stream.
> 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.
> 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.
> So, while interrupts _can_ be an issue for an OoO machine, they don't
> really have to be.
> 
> John Savard
Technical Details
Message-ID: <11bh0lh$2ak9h$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: <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: Robert Finch <robfi680@gmail.com>
Newsgroups: comp.arch
Subject: Re: Interrupts in OoO
Date: Fri, 23 Oct 2026 21:12:14 -0400
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <11bh0lh$2ak9h$1@dont-email.me>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 24 Oct 2026 01:12:18 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2445617"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19EZ4A38c2POcwWwIB1w52CUzwgx2m/mtE="; posting-host="6cbcb7c8fca210eae99e64ab050b1bfc"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Hiood0wdln8Y4GR0ZRbBXo5Vp+I= sha256:Uuvif2nb9JfVgIezQqwtnD1RECzoZfmejKIXaEdcyxc=
	sha1:EIHmyyO4dR03NY30BntHCesaupg= sha256:yLAa/XAWVmDoSgN7B/SwwGP/IaBAWO3ia7Mk89mrUxc=
In-Reply-To: <6adbf319.9129937@news.eternal-september.org>
Content-Language: en-US