The problem is indeed inline asm which is invalid for Thumb-1.
This code comes from JamVM, and the inline asm performs a syscall to invalidate the I-cache after generating some code. It would be better off using the gcc __builtin__clear_cache() function for this, or least changing the code to let gcc generate the constants.
The problem is indeed inline asm which is invalid for Thumb-1.
This code comes from JamVM, and the inline asm performs a syscall to invalidate the I-cache after generating some code. It would be better off using the gcc __builtin_ _clear_ cache() function for this, or least changing the code to let gcc generate the constants.