All of lore.kernel.org
 help / color / mirror / Atom feed
* medeleg[11] should be hardwired to zero?
@ 2021-04-09 20:15 Evan M
  0 siblings, 0 replies; only message in thread
From: Evan M @ 2021-04-09 20:15 UTC (permalink / raw)
  To: qemu-riscv

Hi,

I'm relatively new to RISC-V, so this may be a misunderstanding on my
part. According to the privileged ISA spec v1.12-draft,

> For exceptions that cannot occur in less privileged modes, the corresponding medeleg bits
> should be hardwired to zero. In particular, medeleg[11] is hardwired to zero.

This bit corresponds to RISCV_EXCP_M_ECALL in QEMU, which is OR'd into
delegable_excps in target/riscv/csr.c. Indeed, I can set bit 11
running an RV64 target in QEMU.

Is this a bug in QEMU or a misunderstanding on my part? I'm having a
hard time finding exactly where in the spec it enumerates which
interrupts and exceptions can be delegated from M mode to S mode, so
perhaps I'm off base.

Thanks,
Evan

-- 
Evan Mesterhazy
etm2131@columbia.edu


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-09 20:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 20:15 medeleg[11] should be hardwired to zero? Evan M

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.