Work around a bug in QEMU when loading data with a load pair instructionwhere the source register is also the first destination register.If this is the case, and we raise an exception in the middl
Work around a bug in QEMU when loading data with a load pair instructionwhere the source register is also the first destination register.If this is the case, and we raise an exception in the middle of theinstruction, for example the load is across two pages and the second pageisn't mapped, QEMU will have overwritten the address with invalid data.This is a valid behaviour in most cases, with the exception of when adestination register is also use in address generation. As such switchthe order of the registers to ensure the address register is second so itwill be written to second, after any exceptions have happened.This has been acknowledged in upstream QEMU, however as the workaround issimple also handle it here.Sponsored by: DARPA, AFRL
show more ...
Fix the asm on the memchr and strchr functions.Add an alias from index to strchr as is done in the libc C implementation.Obtained from: ABT Systems LtdSponsored by: The FreeBSD Foundation
Import the Linaro Cortex Strings library into contrib.Sponsored by: The FreeBSD Foundation