On 6 Jan 2017, at 3:16 PM, Vincent Lai <laivin...@gmail.com> wrote:
Michael, thanks for your reply.I assume mideleg.MEI, mideleg.MTI, mideleg.MSI bit fields cannot be written (or does not exist) because these is a sentence in the v1.9.1 specification which says:
"In systems with three privilege modes (M/S/U), setting a bit in medeleg or mideleg will delegate
the corresponding trap in S-mode or U-mode to the S-mode trap handler.”
What is the logical behavior of setting mideleg.MTI bit field? Does it mean delegating machine-mode timer interrupt processing to supervisor-mode?Put it another way, does it mean setting mideleg.MTI to 1 will letsip.STIP get the value of mip.MTIP?sie.STIE get the value of mie.MTIE?It is very confusing!
On Thursday, January 5, 2017 at 11:35:24 PM UTC+8, michaeljclark wrote:
> On 5 Jan 2017, at 11:48 PM, Vincent Lai <laivin...@gmail.com> wrote:
>
> The v1.9.1 privileged specification does not have the bit fields layout of the mideleg register.
>
> So here comes a naive question:
>
> Does the mideleg register contains the following read/write bit fields?
>
> mideleg.MEI
> mideleg.MTI
> mideleg.MSI
The mideleg CSR contains the same bitfield as mip and mie.
BBL actually sets mideleg and medeleg to delegate interrupts and traps to the S-mode.
Since the emulator does not implement H-mode, hideleg and hedeleg are not set, but presumably in a full implementation they would be.
--
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 post to this group, send email to isa...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/isa-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/bb5c4e4b-1e72-4187-a3fb-0c5043e23805%40groups.riscv.org.