On Nov 18, 2019, at 5:04 AM, Tommy Murphy <tommy_...@hotmail.com> wrote:
I don't think that the spec says it but the following suggests that NMI is not recoverable in which case the scenario that you raise is moot?
--
You received this message because you are subscribed to the Google Groups "RISC-V ISA Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isa-dev+u...@groups.riscv.org.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/1d7006bc-b4f1-4263-bdb6-8aa582e1ccd8%40groups.riscv.org.
It is not explicitly described in this version of the spec, but the text in 3.4 does state that it can overwrite state in an existing interrupt handler.If the NMI occurs when mepc and mcause are known not to be in use (outside handler, or have already been saved), the NMI can be recovered, but not in general.
--
You received this message because you are subscribed to the Google Groups "RISC-V ISA Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isa-dev+u...@groups.riscv.org.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/58b50844-1940-44d5-87a6-0daa7dc22579%40groups.riscv.org.
Existing NMI is not recoverable (UNMI)There is a proposal in flight as part of priv-1.12 update to add a recoverable NMI (RNMI) as an extension.
Krste
On Nov 18, 2019, at 5:04 AM, Tommy Murphy <tommy_...@hotmail.com> wrote:
I don't think that the spec says it but the following suggests that NMI is not recoverable in which case the scenario that you raise is moot?--
You received this message because you are subscribed to the Google Groups "RISC-V ISA Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isa...@groups.riscv.org.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/24019.30690.252175.48101%40KAiMac.local.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/CAF4tt%3DD81Vw8_yEhWx6pSVWALe32g_ezdYH7jUgMuXApdph4-g%40mail.gmail.com.
There are other use models for an NMI, but without the extension that Krste has mentioned, it would be difficult to shoehorn that into the current definition.Note that Intel (and probably other architectures) have the concept of a double fault, e.g., a fault that is signalled when a core is handling some other fault.That can only be handled by a reset of some kind, (or perhaps a separate vector, but then you still need to define a triple-fault)
Hi Krste,
Could you give an update on RNMI extension? Is it documented?
Jeff
From: Krste Asanovic <kr...@berkeley.edu>
Sent: Monday, November 18, 2019 7:06 AM
To: Tommy Murphy <tommy_...@hotmail.com>
Cc: RISC-V ISA Dev <isa...@groups.riscv.org>
Subject: [EXT] Re: [isa-dev] Re: question on NMI
Caution: EXT Email
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/B32F0ECC-8B03-4610-8323-69DB8CECCE35%40berkeley.edu.
Hi Krste,
Gentle reminder on this query.
Jeff
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/LO2P265MB4776F1BB1DE276BC533D3ADEF9869%40LO2P265MB4776.GBRP265.PROD.OUTLOOK.COM.
Thanks Tommy! That was very helpful and is along the same lines I would take if doing this as a custom extension.
Krste, where are you putting rnmie bit? Any chance I could get an early draft of the spec? I’d like to align my implementation with the standard as much as possible.
Subscribing to tech-privileged now…