Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Julien Ducourthial <jducourt@noos.fr>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch] correct handling of lswx and mtfsfi instructions in ppc	simulator
Date: Sat, 23 Mar 2002 13:15:00 -0000	[thread overview]
Message-ID: <3C9CF07A.1080300@cygnus.com> (raw)
In-Reply-To: <1007887536.12196.1.camel@athlon_force.localdomain>

> Hi,
> 
> When running a program (which works ok on PPC boards) in the simulator:
>         * the lswx instruction generates exceptions where it should not,
>         * the mtfsi instruction is not recognized at all.
> 
> After checking ppc-instructions :
>         * it seems there are a few typos in the registers handling in
>           lswx (using bytes or bits index instead of register numbers).

Yep.

>         * the prefix of mtfsfi is 64 instead of 63 (from "Powerpc : The
>           Programming Environment").

Yes.

> the patch below fixes both problems.
> 
> 2001-12-09  Julien Ducourthial <jducourt@noos.fr>
> * ppc-instructions (lswx): do the register control with the
> 	register count. Initialize the right register in the loop.
> 	* (mtfsfi) : correct prefix for the instruction.

Thanks.

Andrew




      reply	other threads:[~2002-03-23 21:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-09  0:38 Julien Ducourthial
2002-03-23 13:15 ` Andrew Cagney [this message]

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=3C9CF07A.1080300@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jducourt@noos.fr \
    /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