Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Add thumb support to buildroot for the ARM architecture
Date: Fri, 14 Mar 2008 14:56:55 +0100	[thread overview]
Message-ID: <20080314145655.3c119daa@crazy> (raw)
In-Reply-To: <20080314141929.006a424d@crazy>

Le Fri, 14 Mar 2008 14:19:29 +0100,
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> a ?crit :

> However, there is quite a big difference between your S3C2440 real
> hardware and the Qemu versatilepb emulation. S3C2440 is based on 920T
> as you say, which supports the ARMv4T ISA. But the versatilepb
> emulation of Qemu emulates an ARM926EJ-S CPU, which supports the
> ARMv5TEJ ISA. And as far as I understood, there are some differences
> in the ARM <-> Thumb switch capabilities between ARMv4T and ARMv5T.

In particular, from the ARM architecture manual:

?
BL (H == 10 and H == 11 forms) is in all T variants.
BLX (H == 01 form) is in T variants of ARMv5 and above.
?

So on your S3C2440, the 'blx' instruction is not supported. And this
instruction can especially be used to do interworking. So if gcc
generated this instruction, it of course will fail with the "illegal
instruction" exception.

Sincerly,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Free Embedded Linux Training Materials
on http://free-electrons.com/training
(More than 1500 pages!)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20080314/729ea7f3/attachment.pgp 

  reply	other threads:[~2008-03-14 13:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-12  8:08 [Buildroot] [PATCH] Add thumb support to buildroot for the ARM architecture Thomas Petazzoni
2008-03-14  8:03 ` Thomas Petazzoni
2008-03-14 13:33   ` Ivan Kuten
2008-03-14 13:19     ` Thomas Petazzoni
2008-03-14 13:56       ` Thomas Petazzoni [this message]
2008-03-22 11:06         ` Ivan Kuten
2008-03-22 12:19           ` Thomas Petazzoni
2008-03-23 21:57             ` Ivan Kuten
2008-03-19 16:16   ` Thomas Petazzoni
2008-05-15 12:26     ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080314145655.3c119daa@crazy \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox