public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
* arm7t and the BL thumb instruction?
@ 2003-05-05 14:53 Brandon Warhurst
  2003-05-05 15:08 ` Frank Ch. Eigler
  0 siblings, 1 reply; 4+ messages in thread
From: Brandon Warhurst @ 2003-05-05 14:53 UTC (permalink / raw)
  To: sid

[-- Attachment #1: Type: text/plain, Size: 732 bytes --]

Here is the problem I'm having:  As I step through ARM code I successfully switch from ARM mode to Thumb mode.  However, my first instruction is a BL <someaddress> instruction.  I have stepped through SID watching this instruction execute.  Everything appears fine except that just as I should be executing the instruction, I look at the structure which contains the offset that the BL instruction contained and everything appears to be zero.  This leads to the instruction which executes the branch, however, it just branches to the next instruction, which is obviously wrong unless someaddress points to the next instruction (which it does not in my case).

Here's the question:  Is the BL instruction fully implemented?

bpw.

[-- Attachment #2: Type: text/html, Size: 1281 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arm7t and the BL thumb instruction?
  2003-05-05 14:53 arm7t and the BL thumb instruction? Brandon Warhurst
@ 2003-05-05 15:08 ` Frank Ch. Eigler
       [not found]   ` <004e01c3131c$5c76fde0$6500a8c0@STARBAND.NET>
  0 siblings, 1 reply; 4+ messages in thread
From: Frank Ch. Eigler @ 2003-05-05 15:08 UTC (permalink / raw)
  To: Brandon Warhurst; +Cc: sid

[-- Attachment #1: Type: text/plain, Size: 699 bytes --]

Hi -

On Mon, May 05, 2003 at 10:56:20AM -0400, Brandon Warhurst wrote:
> Here is the problem I'm having:  As I step through ARM code I successfully
> switch from ARM mode to Thumb mode.  However, my first instruction is a
> BL <someaddress> instruction.  I have stepped through SID watching this
> instruction execute.  [...]

Using the "--trace-extract" may tell you almost as much as
stepping through it.

> Here's the question:  Is the BL instruction fully implemented?

In Arm mode, I see a BL instruction, but not one in Thumb mode.
In the latter, a branch-with-link is expressed as consecutive
"bl-hi" and "bl-lo" instructions.

What does "objdump -dr" say on the arm/thumb elf file?

- FChE

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arm7t and the BL thumb instruction?
       [not found]       ` <001c01c3132d$f4d87b70$6500a8c0@STARBAND.NET>
@ 2003-05-05 17:47         ` Frank Ch. Eigler
       [not found]           ` <000301c31384$33a8fef0$6500a8c0@STARBAND.NET>
  0 siblings, 1 reply; 4+ messages in thread
From: Frank Ch. Eigler @ 2003-05-05 17:47 UTC (permalink / raw)
  To: Brandon Warhurst; +Cc: sid

[-- Attachment #1: Type: text/plain, Size: 798 bytes --]

Hi -

> sid.conf:42: component type sid-control-tksm unknown
> sid.conf:50: component type bridge-tcl unknown
> sid.conf:90: component tksm not found
> sid.conf:94: component tksm not found
> sid.conf:110: component tcl-event-consumer not found
> sid.conf:111: component tcl-event-consumer not found
> sid.conf:112: component tcl-event-consumer not found
> Configuration error.  Aborting.
> 
> Can you tell me what might be going on here?  the Tk/Tcl stuff compiled.
> The library is there.. Is there some environment variable I need to set?

If you are running an installed sid out of the directory given at
configure-time (using --prefix), you should not need to set any
environment variables.  Otherwise, you may need a variety -
TCL_PACKAGE_PATH, SID_EXEC_PREFIX.


- FChE

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arm7t and the BL thumb instruction?
       [not found]           ` <000301c31384$33a8fef0$6500a8c0@STARBAND.NET>
@ 2003-05-06 17:01             ` Frank Ch. Eigler
  0 siblings, 0 replies; 4+ messages in thread
From: Frank Ch. Eigler @ 2003-05-06 17:01 UTC (permalink / raw)
  To: Brandon Warhurst; +Cc: sid

[-- Attachment #1: Type: text/plain, Size: 614 bytes --]

Hi -

> [...] I think I might have located the problem, but am not sure.  If
> I read the code correctly, the Thumb decoder always makes
> entire_insn = base_insn >> 16 ... and if you are
> expecting the next instruction to appear in the upper end of base_insn this
> might make sense.  But if it for some reason appeared in the lower end of
> base_insn, you would throw away the instruction before anything got a chance
> to be executed.  [...]

Yikes.  I guess the thumb part hasn't been tested after it was last
regenerated.  I can fix this, though don't have any arm+thumb
elf binaries handy - do you?

- FChE

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-05-06 17:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-05 14:53 arm7t and the BL thumb instruction? Brandon Warhurst
2003-05-05 15:08 ` Frank Ch. Eigler
     [not found]   ` <004e01c3131c$5c76fde0$6500a8c0@STARBAND.NET>
     [not found]     ` <20030505154850.GB3998@redhat.com>
     [not found]       ` <001c01c3132d$f4d87b70$6500a8c0@STARBAND.NET>
2003-05-05 17:47         ` Frank Ch. Eigler
     [not found]           ` <000301c31384$33a8fef0$6500a8c0@STARBAND.NET>
2003-05-06 17:01             ` Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).