From: mayshao-oc <mayshao-oc@zhaoxin.com>
To: <libc-alpha@sourceware.org>
Cc: <hjl.tools@gmail.com>, <carlos@redhat.com>, <fw@deneb.enyo.de>,
<QiyuanWang@zhaoxin.com>, <HerryYang@zhaoxin.com>,
<RickyLi@zhaoxin.com>, mayshao <mayshao-oc@zhaoxin.com>
Subject: [PATCH v3 3/3] x86: Add the test case of __get_cpu_features support for Zhaoxin processors
Date: Fri, 24 Apr 2020 20:29:32 +0800 [thread overview]
Message-ID: <1587731372-9324-4-git-send-email-mayshao-oc@zhaoxin.com> (raw)
In-Reply-To: <1587731372-9324-1-git-send-email-mayshao-oc@zhaoxin.com>
From: mayshao <mayshao-oc@zhaoxin.com>
For the test case of the __get_cpu_features interface, add an item in
cpu_kinds and a switch case for Zhaoxin support.
---
sysdeps/x86/tst-get-cpu-features.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sysdeps/x86/tst-get-cpu-features.c b/sysdeps/x86/tst-get-cpu-features.c
index 0f55987..0dcb906 100644
--- a/sysdeps/x86/tst-get-cpu-features.c
+++ b/sysdeps/x86/tst-get-cpu-features.c
@@ -38,6 +38,7 @@ static const char * const cpu_kinds[] =
"Unknown",
"Intel",
"AMD",
+ "ZHAOXIN",
"Other",
};
@@ -50,6 +51,7 @@ do_test (void)
{
case arch_kind_intel:
case arch_kind_amd:
+ case arch_kind_zhaoxin:
case arch_kind_other:
printf ("Vendor: %s\n", cpu_kinds[cpu_features->basic.kind]);
printf ("Family: 0x%x\n", cpu_features->basic.family);
--
2.7.4
next prev parent reply other threads:[~2020-04-24 12:29 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-24 12:29 [PATCH v3 0/3] x86: Add " mayshao-oc
2020-04-24 12:29 ` [PATCH v3 1/3] x86: Add CPU Vendor ID detection " mayshao-oc
2020-04-24 12:53 ` H.J. Lu
2020-04-24 12:29 ` [PATCH v3 2/3] x86: Add cache information " mayshao-oc
2020-04-24 12:53 ` H.J. Lu
2020-04-26 5:54 ` Mayshao-oc
2020-04-26 12:07 ` H.J. Lu
2020-04-30 5:09 ` Mayshao-oc
2020-04-30 5:15 ` H.J. Lu
2020-04-30 6:04 ` Mayshao-oc
2020-04-30 12:52 ` H.J. Lu
2020-04-30 13:22 ` Mayshao-oc
2020-04-30 13:55 ` H.J. Lu
2020-04-30 14:39 ` Mayshao-oc
2020-04-30 19:10 ` Joseph Myers
2020-04-30 19:16 ` Florian Weimer
2020-04-30 19:21 ` H.J. Lu
2020-04-30 20:04 ` Florian Weimer
2020-04-24 12:29 ` mayshao-oc [this message]
2020-04-24 12:54 ` [PATCH v3 3/3] x86: Add the test case of __get_cpu_features " H.J. Lu
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=1587731372-9324-4-git-send-email-mayshao-oc@zhaoxin.com \
--to=mayshao-oc@zhaoxin.com \
--cc=HerryYang@zhaoxin.com \
--cc=QiyuanWang@zhaoxin.com \
--cc=RickyLi@zhaoxin.com \
--cc=carlos@redhat.com \
--cc=fw@deneb.enyo.de \
--cc=hjl.tools@gmail.com \
--cc=libc-alpha@sourceware.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).