Re: [RFC PATCH] memory: Introduce memory region fetch operation

2024-06-12 Thread Ethan Chen via
On Wed, Jun 12, 2024 at 01:43:41PM +0100, Peter Maydell wrote: > > On Wed, 12 Jun 2024 at 10:02, Ethan Chen via wrote: > > > > Allow the memory region to have different behaviors for read and fetch > > operations. > > > > For example RISCV IOPMP will raise interrupt when cpu try to fetch a > >

Re: [RFC PATCH] memory: Introduce memory region fetch operation

2024-06-12 Thread Peter Maydell
On Wed, 12 Jun 2024 at 10:02, Ethan Chen via wrote: > > Allow the memory region to have different behaviors for read and fetch > operations. > > For example RISCV IOPMP will raise interrupt when cpu try to fetch a > non-excutable region. It actually raises an interrupt rather than it being a

[RFC PATCH] memory: Introduce memory region fetch operation

2024-06-12 Thread Ethan Chen via
Allow the memory region to have different behaviors for read and fetch operations. For example RISCV IOPMP will raise interrupt when cpu try to fetch a non-excutable region. If fetch operation of a memory region is not implemented, it still uses the read operation for fetch. Signed-off-by: