Article View: comp.arch
Article #352Re: Interrupts in OoO
From: Robert Finch
Date: Mon, 26 Oct 2026 17:17
Date: Mon, 26 Oct 2026 17:17
95 lines
5900 bytes
5900 bytes
On 2026-10-26 11:06 a.m., EricP wrote:
> On 2026-Oct-25 11:53, Scott Lurndal wrote:
>> MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>>> quadibloc@invalid.com (John Savard) posted:
>>>
>>>> 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.
>>>>
>>>> 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.
>>>
>>> We have {Traps, Exceptions, Interrupts}.
>>>
>>> A trap is synchronous to the executing code and we want IP pointing
>>> at the
>>> subsequent instruction. A trap may send a small amount of data to the
>>> service
>>> at the other end. Not all registers have to be preserved. Registers
>>> R0..R15
>>> are considered temporaries at the caller->callee boundary. Those
>>> registers
>>> either carry a result or are cleared <HW> at the callee->caller
>>> boundary::
>>> in My 66000 SBI.
>>>
>>> An Exception is synchronous to the executing code and we want IP
>>> pointing
>>> at the offending instruction. What kind of exception is the message
>>> to the
>>> service routine. All Thread-State has to be preserved. A Thread should
>>> be able to handle its own exceptions should it communicate same with
>>> Guest OS.
>>
>> Exceptions are not alway precise. For example, an exception
>> on a posted store (that's spent time in a store buffer, for
>> example), may have an exception asynchronously.
>
> This is a terminology problem that comes from processors putting
> all the "alert" notifications through the same delivery mechanism.
> People often use various the terms as interchangeable when really
> they are not.
>
> In my terminology I have Exceptions, Interrupts, and Errors.
> I take all the well defined stuff and put it in the Exception and
> Interrupt buckets, and take all the weird stuff and call it Errors.
>
> Exceptions are defined by the ISA, are precise, and synchronous
> to the excepting instruction. There are two kinds, Faults and Traps.
> Most exceptions notifications cannot be deferred or "masked".
> Floating point exceptions are potentially maskable however if
> they are then any auxiliary information about the precise source of
> the FP exceptions will be synchronous with instruction that unmasks
> a pending floating point exception.
>
> Interrupts are defined as precise and asynchronous.
> Their number and priority mechanisms is defined as model specific.
> Interrupts are potentially maskable and may be deferred.
> The only ISA defined part of interrupts are the master interrupt
> mask control instructions INTEN enable and INTDI disable.
>
> Exceptions and Interrupts are defined as precise and restartable.
>
> The mechanism for delivering Exception and Interrupt notifications
> is defined as model specific. In practice this just means that
> operating systems should modularize this layer of their software
> (sometimes called a HAL or Hardware Abstraction Layer).
>
> Errors are model and error specific, may be synchronous or asynchronous,
> may be precise (Faults or Traps) or imprecise (Aborts).
> Errors may or may not be deferred (maskable).
> Errors may not be restartable.
> The mechanism for delivering Error notifications is defined as
> model and error specific.
>
I have thought that interrupts, traps and others are subsets of
exceptions, which I think is the way m68k docs describes them. So, I
would have errors as a subset of exceptions.
Interrupts, traps, errors and exceptions are all often handled by the
same table which different vendors seem to give different names to.
I think interrupts may only be precise to a point. An interrupt is
asynchronous, so how precise is it? In q+ the hardware may defer it to a
short time later.
Technical Details
Message-ID:
<11bo1vr$pqob$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-mailReferences:
<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> <1792869649-5857@newsgrouper.org> <fCpDS.27362$9b8f.8498@fx39.iad> <L%JDS.15598$fJ0f.4191@fx44.iad>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: Mon, 26 Oct 2026 13:17:45 -0400 Organization: A noiseless patient Spider Lines: 95 Message-ID: <11bo1vr$pqob$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> <1792869649-5857@newsgrouper.org> <fCpDS.27362$9b8f.8498@fx39.iad> <L%JDS.15598$fJ0f.4191@fx44.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 26 Oct 2026 17:17:47 +0000 (UTC) Injection-Info: dont-email.me; logging-data="846603"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19j6Oun3YBNhZlLLPNHgp0mMdtAlrBfJco="; posting-host="463ac1aaa2f1ddafd9d90c090bac7fde" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:xebtcMG22L8FB2UaEFQEnPVhRsc= sha256:o8T2xHRfofXXYUFkLNk0NNpD6Rayjbyr4KiIiPmnV9E= sha1:21Gnny0Jrggo1D4JGJz4Y0CAK2c= sha256:pDvDorVATOS+jWZFyMywJsHI5kmN/eg2fXHVLiznQGc= In-Reply-To: <L%JDS.15598$fJ0f.4191@fx44.iad> Content-Language: en-US