On 21/1/26 11:59, Alex Bennée wrote:
The NVIC should always be a little-endian device as big-endian
behaviour is a function of the current CPU configuration not the
system as a whole. Indeed the Armv8-M architecture reference manual
declares:

   All accesses to the Private Peripheral Bus (PPB) are always
   little-endian, which means that the PE assumes a little-endian
   arrangement of the PPB registers.

This should have no functional effect as the NVIC cannot be
instantiated on a BE system but will help the single binary efforts.

Signed-off-by: Alex Bennée <[email protected]>
---
  hw/intc/armv7m_nvic.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Reply via email to