Article View: comp.arch
Article #452Re: interrupt handling latency and weird register use (was Re: OT: Epic RISC-V rant)
From: MitchAlsup
Date: Fri, 30 Oct 2026 00:30
Date: Fri, 30 Oct 2026 00:30
40 lines
2979 bytes
2979 bytes
Josh Vanderhoof <x@y.z> posted: > 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 do not see any justification of NOT having DIV as an instruction and in HW (by means of some king of sequencer). In the same way we can put 16 GBOoO cores on a single die with 256-bit wide SIMD, the amount of area saved not doing DIV is invisible when seen at the die-level. In the smallest conceivable implementations, DIV is a multiplexer in the feedback-loop around the integer ADDer and a 5-state sequencer. For me, I can't see building a core that does not have a 64×64 multiplier, either. > 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. I have no idea what you mean by polyfill.
Technical Details
Message-ID:
<1793320218-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-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> <ygnwlr084yt.fsf@y.z>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: 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> <ygnwlr084yt.fsf@y.z> Date: Fri, 30 Oct 2026 00:30:18 GMT Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: <1793320218-5857@newsgrouper.org> Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857 Injection-Date: Fri, 30 Oct 2026 00:30:18 GMT User-Agent: Newsgrouper/0.9.0