[U-Boot] Query on CONFIG_SYS_THUMB_BUILD

Simon Glass
2014-11-15T22:10:47Z

Hi Albert,

On 15 November 2014 05:30, Albert ARIBAUD <albert.u.boot@aribaud.net> wrote:
> Hello Simon,
>
> On Fri, 14 Nov 2014 18:56:07 -0700, Simon Glass <sjg@chromium.org>
> wrote:
>
>> > I believe you've built crt0.S for ARM, not Thumb.
>>
>> Yes, but I suspect that is a function of the build system. I checked
>> the rest of U-Boot and most of it (including SPL) is Thumb 2. I
>> suppose we could use Thumb 2 for crt0.S if all the instructions are
>> supported.
>
> Ok. Just in case, I'll run a check on whether crt0.S can be assembled
> for Thumb and still wrk as expected. :)
>
> Do you have a list of source files which still build for ARM under
> CONFIG_SYS_THUMB_BUILD? I' would prefer all of the code to be thumb for
> consistence, except probably... exception :) entry points -- and even
> these should be able to run in full Thumb 2.

No I don't have a list, but it might be all assembler files. I don't
see why cro0.S would be special.

Regards,
Simon