oprofile: Add nios2 support
Add support for the nios2 architecture. (From OE-Core rev: a4292d508c2747d2543302404d877fff58f8b1d1) Signed-off-by: Marek Vasut <marex@denx.de> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Cc: Ross Burton <ross.burton@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
fd7dd07e66
commit
a1ad3d0587
|
@ -23,7 +23,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \
|
|||
file://automake-foreign.patch \
|
||||
file://oprofile-cross-compile-tests.patch \
|
||||
file://run-ptest \
|
||||
file://root-home-dir.patch"
|
||||
file://root-home-dir.patch \
|
||||
file://0001-Add-rmb-definition-for-NIOS2-architecture.patch"
|
||||
|
||||
SRC_URI_append_libc-musl = " file://musl.patch"
|
||||
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
From 34b0d9b1a32fb404a30327a7ae8931c7c75583bf Mon Sep 17 00:00:00 2001
|
||||
From: Marek Vasut <marex@denx.de>
|
||||
Date: Tue, 9 Feb 2016 02:00:29 +0100
|
||||
Subject: [PATCH] Add rmb() definition for NIOS2 architecture
|
||||
|
||||
Signed-off-by: Marek Vasut <marex@denx.de>
|
||||
Upstream-Status: Submitted [ http://marc.info/?l=oprofile-list&m=145501915931874&w=2 ]
|
||||
---
|
||||
libperf_events/operf_utils.h | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/libperf_events/operf_utils.h b/libperf_events/operf_utils.h
|
||||
index 32954cc..8270e53 100644
|
||||
--- a/libperf_events/operf_utils.h
|
||||
+++ b/libperf_events/operf_utils.h
|
||||
@@ -178,6 +178,11 @@ void op_release_resources(void);
|
||||
#define cpu_relax() asm volatile("" ::: "memory")
|
||||
#endif
|
||||
|
||||
+#ifdef __nios2__
|
||||
+#define rmb() asm volatile("" ::: "memory")
|
||||
+#define cpu_relax() asm volatile("" ::: "memory")
|
||||
+#endif
|
||||
+
|
||||
#ifdef __tile__
|
||||
#include <asm/unistd.h>
|
||||
#define rmb() __insn_mf()
|
||||
--
|
||||
2.7.0
|
||||
|
Loading…
Reference in New Issue