Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 933711 Details for
Bug 1136331
enable on s390(x)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
add s390(x) support
papi-5.3.2-s390.patch (text/plain), 1.68 KB, created by
Dan Horák
on 2014-09-02 11:09:23 UTC
(
hide
)
Description:
add s390(x) support
Filename:
MIME Type:
Creator:
Dan Horák
Created:
2014-09-02 11:09:23 UTC
Size:
1.68 KB
patch
obsolete
>diff -up papi-5.3.2/src/configure.in.s390 papi-5.3.2/src/configure.in >--- papi-5.3.2/src/configure.in.s390 2014-07-09 16:56:11.000000000 -0400 >+++ papi-5.3.2/src/configure.in 2014-09-02 10:19:07.304115999 -0400 >@@ -384,7 +384,7 @@ AC_DEFINE_UNQUOTED(CPU,$CPU,[cpu type]) > > # First set pthread-mutexes based on arch > case $arch in >- aarch64|arm*) >+ aarch64|arm*|s390*) > pthread_mutexes=yes > CFLAGS="$CFLAGS -DUSE_PTHREAD_MUTEXES" > echo "forcing use of pthread mutexes... " >&6 >diff -up papi-5.3.2/src/linux-context.h.s390 papi-5.3.2/src/linux-context.h >--- papi-5.3.2/src/linux-context.h.s390 2014-07-09 16:54:19.000000000 -0400 >+++ papi-5.3.2/src/linux-context.h 2014-09-02 10:19:07.304115999 -0400 >@@ -35,6 +35,8 @@ typedef ucontext_t hwd_ucontext_t; > #define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.pc > #elif defined(__mips__) > #define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.pc >+#elif defined(__s390__) >+#define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.psw.addr > #else > #error "OVERFLOW_ADDRESS() undefined!" > #endif >diff -up papi-5.3.2/src/linux-timer.c.s390 papi-5.3.2/src/linux-timer.c >--- papi-5.3.2/src/linux-timer.c.s390 2014-07-09 16:54:19.000000000 -0400 >+++ papi-5.3.2/src/linux-timer.c 2014-09-02 10:41:38.934115999 -0400 >@@ -212,6 +212,20 @@ get_cycles( void ) > } > > /************************/ >+/* S390 get_cycles() */ >+/************************/ >+ >+#elif defined(__s390__) >+static inline long long >+get_cycles( void ) >+{ >+ unsigned long long ret;; >+ >+ __asm__("stck 0(%0)" : : "a" (&(ret)) : "memory", "cc"); >+ return (long long)ret; >+} >+ >+/************************/ > /* POWER get_cycles() */ > /************************/ >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1136331
: 933711 |
971298