Re: [PATCH 1/2] target/xtensa: wrap MMU and MPU state into structures

2024-01-22 Thread Peter Maydell
On Mon, 22 Jan 2024 at 18:45, Max Filippov wrote: > > On Mon, Jan 22, 2024 at 10:29 AM Peter Maydell > wrote: > > > > On Fri, 19 Jan 2024 at 20:47, Max Filippov wrote: > > > +union { > > > +XtensaMMU mmu; > > > +XtensaMPU mpu; > > > +}; > > > > Is it really worth having

Re: [PATCH 1/2] target/xtensa: wrap MMU and MPU state into structures

2024-01-22 Thread Max Filippov
On Mon, Jan 22, 2024 at 10:29 AM Peter Maydell wrote: > > On Fri, 19 Jan 2024 at 20:47, Max Filippov wrote: > > > > Make separation of alternative xtensa memory management options state > > explicit. > > > > Signed-off-by: Max Filippov > > --- > > target/xtensa/cpu.h| 18 +--

Re: [PATCH 1/2] target/xtensa: wrap MMU and MPU state into structures

2024-01-22 Thread Peter Maydell
On Fri, 19 Jan 2024 at 20:47, Max Filippov wrote: > > Make separation of alternative xtensa memory management options state > explicit. > > Signed-off-by: Max Filippov > --- > target/xtensa/cpu.h| 18 + > target/xtensa/mmu_helper.c | 40 +++

[PATCH 1/2] target/xtensa: wrap MMU and MPU state into structures

2024-01-19 Thread Max Filippov
Make separation of alternative xtensa memory management options state explicit. Signed-off-by: Max Filippov --- target/xtensa/cpu.h| 18 + target/xtensa/mmu_helper.c | 40 +++--- 2 files changed, 34 insertions(+), 24 deletions(-) diff --gi