Re: [PATCH for-4.2] target/arm: Support EL0 v7m msr/mrs for CONFIG_USER_ONLY

2019-11-19 Thread Peter Maydell
On Mon, 18 Nov 2019 at 19:49, Richard Henderson wrote: > > Simply moving the non-stub helper_v7m_mrs/msr outside of > !CONFIG_USER_ONLY is not an option, because of all of the > other system-mode helpers that are called. > > But we can split out a few subroutines to handle the few > EL0 accessible

[PATCH for-4.2] target/arm: Support EL0 v7m msr/mrs for CONFIG_USER_ONLY

2019-11-18 Thread Richard Henderson
Simply moving the non-stub helper_v7m_mrs/msr outside of !CONFIG_USER_ONLY is not an option, because of all of the other system-mode helpers that are called. But we can split out a few subroutines to handle the few EL0 accessible registers without duplicating code. Reported-by: Christophe Lyon S