Article View: comp.arch
Article #450Re: interrupt handling latency and weird register use (was Re: OT: Epic RISC-V rant)
From: Josh Vanderhoof
Date: Thu, 29 Oct 2026 23:25
Date: Thu, 29 Oct 2026 23:25
24 lines
2353 bytes
2353 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> writes: >> > Note to µArchitects, put the instruction in even if you are >> > going to TRAP to SW emulation. Later on when DIV is >> > implemented it just runs faster and you had to do nothing >> > (but put it in). >> You need to make it fast enough so that compilers are not >> tempted to call software emulation. Also beware of interrput >> latency, > > I am shooting at 10 cycles there and 10 cycles back. Would it be possible to have a hardware version of polyfill? The basic idea would be that instead of emulation via trapping, the software calls a standardized divide routine. On hardware with a divide instruction it checks the routine and if it sees it's the standard divide routine it just uses its divide instruction instead. If it doesn't have hardware division it just runs the divide routine. I think I'd be more likely to use new instructions if they worked this way, providing the standard polyfill routine in the documentation for the new instruction. The way things work now I only use them after they've been around for a decade.
Technical Details
Message-ID:
<ygnwlr084yt.fsf@y.z>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx08.iad.POSTED!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx08.iad.POSTED!not-for-mail From: Josh Vanderhoof <x@y.z> Newsgroups: comp.arch Subject: Re: interrupt handling latency and weird register use (was Re: OT: Epic RISC-V rant) 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> User-Agent: Gnus/5.13 (Gnus v5.13) Reply-To: Josh Vanderhoof <jlv@mxsimulator.com> Message-ID: <ygnwlr084yt.fsf@y.z> Cancel-Lock: sha1:MKkX0c54giAgmRw6Q2nvFTc/1uU= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 24 X-Complaints-To: https://www.astraweb.com/aup NNTP-Posting-Date: Thu, 29 Oct 2026 23:23:06 UTC Date: Thu, 29 Oct 2026 19:25:14 -0400 X-Received-Bytes: 2121