Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Jim Wilson <wilson@specifix.com>
To: william_lei@ali.com.tw
Cc: linux-mips@linux-mips.org
Subject: Re: How to emulate lw/sw instruction by lb/sb instruction
Date: Wed, 27 Sep 2006 13:14:11 -0700	[thread overview]
Message-ID: <1159388051.3181.6.camel@localhost.localdomain> (raw)
In-Reply-To: <OFCDEA2C7E.BF7FD296-ON482571F4.0039233C-482571F4.003A3A12@LocalDomain>

On Mon, 2006-09-25 at 18:35 +0800, william_lei@ali.com.tw wrote:
>       Because there are some aligned instruction will load/store from/to
> unaligned base address in some module,such as "lw t0,56(sp)  ##sp is odd
> address"

You are better off fixing your code.  SP must always be aligned to an 8
byte boundary minimum, 16 bytes for the New ABIs.

Changing gcc would be difficult, and it isn't even clear if such a
change can be made to work.  If it is possible, the resulting code will
likely be so bad as to be nearly useless.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com

  parent reply	other threads:[~2006-09-27 20:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <001401c6e07e$8b07c080$10eca8c0@grendel>
2006-09-25 10:35 ` How to emulate lw/sw instruction by lb/sb instruction william_lei
2006-09-25 16:11   ` Maciej W. Rozycki
2006-09-27 20:14   ` Jim Wilson [this message]
2006-09-25  0:41 william_lei
2006-09-25  6:03 ` Florian Fainelli
2006-09-25 10:49 ` Ulrich Eckhardt
2006-09-25 11:05 ` Ralf Baechle

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=1159388051.3181.6.camel@localhost.localdomain \
    --to=wilson@specifix.com \
    --cc=linux-mips@linux-mips.org \
    --cc=william_lei@ali.com.tw \
    /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