From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2757 invoked by alias); 5 May 2003 14:53:28 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 2750 invoked from network); 5 May 2003 14:53:27 -0000 Received: from unknown (HELO hestia.email.starband.net) (148.78.247.24) by sources.redhat.com with SMTP; 5 May 2003 14:53:27 -0000 Received: from stargate (vsat-148-63-239-86.c004.g4.mrt.starband.net [148.63.239.86]) by hestia.email.starband.net (8.12.9/8.12.9) with SMTP id h45ErFDn028182 for ; Mon, 5 May 2003 10:53:23 -0400 Message-ID: <002801c31316$80de0cb0$6500a8c0@STARBAND.NET> From: "Brandon Warhurst" To: Subject: arm7t and the BL thumb instruction? Date: Mon, 05 May 2003 14:53:00 -0000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0025_01C312F4.F61901A0" X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-q2/txt/msg00016.txt.bz2 This is a multi-part message in MIME format. ------=_NextPart_000_0025_01C312F4.F61901A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 746 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 = instruction. I have stepped through SID watching this instru= ction execute. Everything appears fine except that just as I should be exe= cuting the instruction, I look at the structure which contains the offset t= hat the BL instruction contained and everything appears to be zero. This l= eads to the instruction which executes the branch, however, it just branche= s to the next instruction, which is obviously wrong unless someaddress poin= ts to the next instruction (which it does not in my case). Here's the question: Is the BL instruction fully implemented? bpw.= ------=_NextPart_000_0025_01C312F4.F61901A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 1327
Here is the problem I'm having:  As I= step=20 through ARM code I successfully switch from ARM mode to Thumb mode. =20 However, my first instruction is a BL <someaddress> instruction. = ; I=20 have stepped through SID watching this instruction execute.  Everythin= g=20 appears fine except that just as I should be executing the instruction, I l= ook=20 at the structure which contains the offset that the BL instruction containe= d and=20 everything appears to be zero.  This leads to the instruction which=20 executes the branch, however, it just branches to the next instruction, whi= ch is=20 obviously wrong unless someaddress points to the next instruction (which it= does=20 not in my case).
 
Here's the question:  Is the BL instr= uction=20 fully implemented?
 
bpw.
------=_NextPart_000_0025_01C312F4.F61901A0-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14730 invoked by alias); 5 May 2003 15:08:14 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 14723 invoked from network); 5 May 2003 15:08:12 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 5 May 2003 15:08:12 -0000 Received: from toenail.toronto.redhat.com (toenail.toronto.redhat.com [172.16.14.211]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 82788800030; Mon, 5 May 2003 11:08:12 -0400 (EDT) Received: from toenail.toronto.redhat.com (IDENT:fche@localhost [127.0.0.1]) by toenail.toronto.redhat.com (8.11.6/8.11.6) with ESMTP id h45F8Ck04968; Mon, 5 May 2003 11:08:12 -0400 Received: (from fche@localhost) by toenail.toronto.redhat.com (8.12.8/8.12.8/Submit) id h45F89Km004964; Mon, 5 May 2003 11:08:09 -0400 Date: Mon, 05 May 2003 15:08:00 -0000 From: "Frank Ch. Eigler" To: Brandon Warhurst Cc: sid@sources.redhat.com Subject: Re: arm7t and the BL thumb instruction? Message-ID: <20030505150808.GA3998@redhat.com> References: <002801c31316$80de0cb0$6500a8c0@STARBAND.NET> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: <002801c31316$80de0cb0$6500a8c0@STARBAND.NET> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-q2/txt/msg00017.txt.bz2 --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 699 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 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 --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+tn5YVZbdDOm/ZT0RAkgMAJ4pnl2KjZxBCYBr4PkCxLFuPJPlvwCeI8Oz LfjmJ2hhsLFt42o+1eG96hQ= =FgST -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1118 invoked by alias); 5 May 2003 17:47:23 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 1109 invoked from network); 5 May 2003 17:47:22 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 5 May 2003 17:47:22 -0000 Received: from toenail.toronto.redhat.com (toenail.toronto.redhat.com [172.16.14.211]) by touchme.toronto.redhat.com (Postfix) with ESMTP id F1A31800030; Mon, 5 May 2003 13:47:21 -0400 (EDT) Received: from toenail.toronto.redhat.com (IDENT:fche@localhost [127.0.0.1]) by toenail.toronto.redhat.com (8.11.6/8.11.6) with ESMTP id h45HlLk07571; Mon, 5 May 2003 13:47:21 -0400 Received: (from fche@localhost) by toenail.toronto.redhat.com (8.12.8/8.12.8/Submit) id h45HlLS1007567; Mon, 5 May 2003 13:47:21 -0400 Date: Mon, 05 May 2003 17:47:00 -0000 From: "Frank Ch. Eigler" To: Brandon Warhurst Cc: sid@sources.redhat.com Subject: Re: arm7t and the BL thumb instruction? Message-ID: <20030505174719.GF3998@redhat.com> References: <002801c31316$80de0cb0$6500a8c0@STARBAND.NET> <20030505150808.GA3998@redhat.com> <004e01c3131c$5c76fde0$6500a8c0@STARBAND.NET> <20030505154850.GB3998@redhat.com> <001c01c3132d$f4d87b70$6500a8c0@STARBAND.NET> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AH+kv8CCoFf6qPuz" Content-Disposition: inline In-Reply-To: <001c01c3132d$f4d87b70$6500a8c0@STARBAND.NET> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-q2/txt/msg00018.txt.bz2 --AH+kv8CCoFf6qPuz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 779 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. >=20 > 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 --AH+kv8CCoFf6qPuz Content-Type: application/pgp-signature Content-Disposition: inline Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+tqOnVZbdDOm/ZT0RAtVUAJ4ktc8RsNnPEos72B1Fp/7H0Fro7QCfaP0K ehPj7ft2FiDBBwq9ywsN2aA= =0STg -----END PGP SIGNATURE----- --AH+kv8CCoFf6qPuz-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31365 invoked by alias); 6 May 2003 17:01:26 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 31346 invoked from network); 6 May 2003 17:01:25 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 6 May 2003 17:01:25 -0000 Received: from toenail.toronto.redhat.com (toenail.toronto.redhat.com [172.16.14.211]) by touchme.toronto.redhat.com (Postfix) with ESMTP id E326B800030; Tue, 6 May 2003 13:01:24 -0400 (EDT) Received: from toenail.toronto.redhat.com (IDENT:fche@localhost [127.0.0.1]) by toenail.toronto.redhat.com (8.11.6/8.11.6) with ESMTP id h46H1Ok16808; Tue, 6 May 2003 13:01:24 -0400 Received: (from fche@localhost) by toenail.toronto.redhat.com (8.12.8/8.12.8/Submit) id h46H1O0i016804; Tue, 6 May 2003 13:01:24 -0400 Date: Tue, 06 May 2003 17:01:00 -0000 From: "Frank Ch. Eigler" To: Brandon Warhurst Cc: sid@sources.redhat.com Subject: Re: arm7t and the BL thumb instruction? Message-ID: <20030506170123.GD32685@redhat.com> References: <002801c31316$80de0cb0$6500a8c0@STARBAND.NET> <20030505150808.GA3998@redhat.com> <004e01c3131c$5c76fde0$6500a8c0@STARBAND.NET> <20030505154850.GB3998@redhat.com> <001c01c3132d$f4d87b70$6500a8c0@STARBAND.NET> <20030505174719.GF3998@redhat.com> <000301c31384$33a8fef0$6500a8c0@STARBAND.NET> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="x+6KMIRAuhnl3hBn" Content-Disposition: inline In-Reply-To: <000301c31384$33a8fef0$6500a8c0@STARBAND.NET> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-q2/txt/msg00019.txt.bz2 --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 614 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 --x+6KMIRAuhnl3hBn Content-Type: application/pgp-signature Content-Disposition: inline Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+t+pjVZbdDOm/ZT0RAs4yAJ9zKwG3DLoK0+jvAxAjEC1KX4CZrwCfaOkm NjGPL8fDHi1LjmSEnb29LYw= =QfKx -----END PGP SIGNATURE----- --x+6KMIRAuhnl3hBn--