From: Allen Pais <allen.pais@oracle.com>
To: sparclinux@vger.kernel.org
Subject: Re: [PATCH v1 1/3] sparc64: correctly recognise M7 cpu type
Date: Sun, 24 Aug 2014 06:43:38 +0000 [thread overview]
Message-ID: <53F986CA.9050000@oracle.com> (raw)
In-Reply-To: <1408686773-3044-1-git-send-email-allen.pais@oracle.com>
David,
>> The idea was to also have M5 and M6-32 cpu types supported too with M7.
>>
>> +71:
>> + ldub [%g1 + 7], %g2
>> + cmp %g1, '5'
>> + be,pt %xcc, 5f
>> + mov SUN4V_CHIP_SPARC_M5, %g4
>> + cmp %g1, '6'
>> + be,pt %xcc, 5f
>> + mov SUN4V_CHIP_SPARC_M6, %g4
>> + cmp %g2, '7'
>> + be,pt %xcc, 5f
>> + mov SUN4V_CHIP_SPARC_M7, %g4
>> + ba,pt %xcc, 49f
>> + nop
>> +
>
> Again, why are you bothing with a special code path at all? You don't
> need to.
>
> Just add the M7 test to the "70:" label code block, and you're done.
>
I was a little confused when you initially mentioned about using "70:" label
code block, now I see the point. I'll re-do the patch and test it.
- Allen
next prev parent reply other threads:[~2014-08-24 6:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-22 5:53 [PATCH v1 1/3] sparc64: correctly recognise M7 cpu type Allen Pais
2014-08-23 18:51 ` David Miller
2014-08-24 6:18 ` David Miller
2014-08-24 6:19 ` Allen Pais
2014-08-24 6:31 ` Allen Pais
2014-08-24 6:43 ` David Miller
2014-08-24 6:43 ` Allen Pais [this message]
2014-08-24 12:35 ` Bob Picco
2014-08-24 19:06 ` David Miller
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=53F986CA.9050000@oracle.com \
--to=allen.pais@oracle.com \
--cc=sparclinux@vger.kernel.org \
/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.