From: Murray.Jensen at csiro.au <Murray.Jensen@csiro.au>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [id]cache_status looks at wrong bit for MPC8560
Date: Sat, 16 Jul 2005 01:36:00 +1000 [thread overview]
Message-ID: <11879.1121441760@huldra> (raw)
In-Reply-To: Your message of "Fri, 15 Jul 2005 09:27:49 -0500" <126917E5-9355-482F-96B4-3FB1FDF19F20@freescale.com>
On Fri, 15 Jul 2005 09:27:49 -0500, Kumar Gala writes:
>When you say they
>are looking at the wrong bit, what exactly do you mean?
This code:
srwi r3, r3, 31 /* >>31 => select bit 0 */
looks at the MSB of L1CSRn. It should look at the LSB.
I think the code should be something like this:
andi. r3,r3,1
or maybe:
li r4,1
and r3,r3,r4
if you dont want to touch CR0 (can you modify the CRs whenever you like?).
This reasoning is based on the description of the L1CSRn regs in my MPC8560
manual. I was wondering if this was correct for all MPC85xx processors, or
just the 8560 (or maybe my manual is wrong, or I haven't seen an errata).
Cheers!
Murray...
--
Murray Jensen, CSIRO Manufacturing & Infra. Tech. Phone: +61 3 9662 7763
Locked Bag No. 9, Preston, Vic, 3072, Australia. Fax: +61 3 9662 7853
Internet: Murray.Jensen at csiro.au
To the extent permitted by law, CSIRO does not represent, warrant and/or
guarantee that the integrity of this communication has been maintained or
that the communication is free of errors, virus, interception or interference.
The information contained in this e-mail may be confidential or privileged.
Any unauthorised use or disclosure is prohibited. If you have received this
e-mail in error, please delete it immediately and notify Murray Jensen on
+61 3 9662 7763. Thank you.
next prev parent reply other threads:[~2005-07-15 15:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-15 0:40 [U-Boot-Users] [id]cache_status looks at wrong bit for MPC8560 Murray.Jensen at csiro.au
2005-07-15 14:27 ` Kumar Gala
2005-07-15 15:36 ` Murray.Jensen at csiro.au [this message]
2005-07-18 12:42 ` Kumar Gala
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=11879.1121441760@huldra \
--to=murray.jensen@csiro.au \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.