Skip to contentSkip to conversation

Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD.

PATCH Applied Brad 3 participants 7 messages May 26, 2011 – Jun 3, 2011

lore
Share & tools
lore

Brad

author
#0 lore raw

PATCH 2/3 Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD.

Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD to fix compilation of the MIPS host support for OpenBSD/mips64 based architecures.

---
 tcg/mips/tcg-target.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
tcg/mips/tcg-target.h +4 -0
index 0028bfa..8cb7d88 100644
@@ -102,7 +102,11 @@ enum {
 /* guest base is supported */
 #define TCG_TARGET_HAS_GUEST_BASE
 
+#ifdef __OpenBSD__
+#include <machine/sysarch.h>
+#else
 #include <sys/cachectl.h>
+#endif
 
 static inline void flush_icache_range(unsigned long start, unsigned long stop)
 {
Signature · 6 lines
1.7.5

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
author
#1 lore raw
Quoted 2 lines · Brad

Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD to fix compilation of the MIPS host support for OpenBSD/mips64 based architecures.

ping.

Quoted 22 lines
---
  tcg/mips/tcg-target.h |    4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)
tcg/mips/tcg-target.h +4 -0
index 0028bfa..8cb7d88 100644
@@ -102,7 +102,11 @@ enum {
  /* guest base is supported */
  #define TCG_TARGET_HAS_GUEST_BASE
 
+#ifdef __OpenBSD__
+#include<machine/sysarch.h>
+#else
  #include<sys/cachectl.h>
+#endif
 
  static inline void flush_icache_range(unsigned long start, unsigned long stop)
  {
Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#2 lore raw

Am 30.05.2011 um 23:01 schrieb Brad:

Quoted 20 lines · Brad
Quoted 2 lines

Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD to fix compilation of the MIPS host support for OpenBSD/mips64 based architecures.

ping.

Quoted 14 lines
---
 tcg/mips/tcg-target.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
tcg/mips/tcg-target.h +0 -0
index 0028bfa..8cb7d88 100644
@@ -102,7 +102,11 @@ enum {
 /* guest base is supported */
 #define TCG_TARGET_HAS_GUEST_BASE
 
Quoted 2 lines

tcg/mips/tcg-target.h enum { · line 106

Quoted 2 lines
tcg/mips/tcg-target.h +2 -0
+#ifdef __OpenBSD__
+#include<machine/sysarch.h>

Usually we have a space in there. Bad example below. ;)

Quoted 7 lines
Quoted 7 lines
tcg/mips/tcg-target.h +2 -0
+#else
 #include<sys/cachectl.h>
+#endif
 
 static inline void flush_icache_range(unsigned long start,  
 unsigned long stop)

{

author
#3 lore raw
Quoted 24 lines · Andreas Färber

Am 30.05.2011 um 23:01 schrieb Brad:

Quoted 22 lines · Brad
Quoted 4 lines

Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD
to fix compilation of the MIPS host support for OpenBSD/mips64 based architecures.

ping.

Quoted 14 lines

---
tcg/mips/tcg-target.h | 4 ++++

1 files changed, 4 insertions(+), 0 deletions(-)
tcg/mips/tcg-target.h +0 -0
index 0028bfa..8cb7d88 100644
@@ -102,7 +102,11 @@ enum {
 /* guest base is supported */
 #define TCG_TARGET_HAS_GUEST_BASE
 
Quoted 4 lines
Quoted 2 lines

tcg/mips/tcg-target.h enum { · line 106

Quoted 2 lines
tcg/mips/tcg-target.h +2 -0
+#ifdef __OpenBSD__
+#include<machine/sysarch.h>

Usually we have a space in there. Bad example below. ;)

In the original diff as it came across the mailing list even there is a space.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
author
#4 lore raw
Quoted 25 lines · Brad
Quoted 24 lines · Andreas Färber

Am 30.05.2011 um 23:01 schrieb Brad:

Quoted 22 lines · Brad
Quoted 4 lines

Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD
to fix compilation of the MIPS host support for OpenBSD/mips64 based architecures.

ping.

Quoted 14 lines

---
tcg/mips/tcg-target.h | 4 ++++

1 files changed, 4 insertions(+), 0 deletions(-)
tcg/mips/tcg-target.h +0 -0
index 0028bfa..8cb7d88 100644
@@ -102,7 +102,11 @@ enum {
 /* guest base is supported */
 #define TCG_TARGET_HAS_GUEST_BASE
 
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

tcg/mips/tcg-target.h enum { · line 106

Quoted 2 lines
tcg/mips/tcg-target.h +2 -0
+#ifdef __OpenBSD__
+#include<machine/sysarch.h>

Usually we have a space in there. Bad example below. ;)

In the original diff as it came across the mailing list even there is a space.

Looks like a case of stupid ThunderBird mangling the e-mail content upon replying. I didn't send the diff with ThunderBird.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#5 lore raw
In reply to Brad

Am 30.05.2011 um 23:22 schrieb Brad:

Quoted 25 lines · Andreas Färber
Quoted 24 lines

Am 30.05.2011 um 23:01 schrieb Brad:

Quoted 22 lines · Brad
Quoted 4 lines

Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD
to fix compilation of the MIPS host support for OpenBSD/mips64 based architecures.

ping.

Quoted 14 lines

---
tcg/mips/tcg-target.h | 4 ++++

1 files changed, 4 insertions(+), 0 deletions(-)
tcg/mips/tcg-target.h +0 -0
index 0028bfa..8cb7d88 100644
@@ -102,7 +102,11 @@ enum {
 /* guest base is supported */
 #define TCG_TARGET_HAS_GUEST_BASE
 
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

tcg/mips/tcg-target.h enum { · line 106

Quoted 2 lines
tcg/mips/tcg-target.h +2 -0
+#ifdef __OpenBSD__
+#include<machine/sysarch.h>

Usually we have a space in there. Bad example below. ;)

In the original diff as it came across the mailing list even there is a space.

Confirmed, looks better on Patchwork: http://patchwork.ozlabs.org/patch/97488/

Andreas

#6 lore raw
In reply to Brad
Quoted 8 lines · Brad

Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD to fix compilation of the MIPS host support for OpenBSD/mips64 based architecures.

---
 tcg/mips/tcg-target.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Thanks, applied.

Quoted 26 lines
tcg/mips/tcg-target.h +4 -0
index 0028bfa..8cb7d88 100644
@@ -102,7 +102,11 @@ enum {
 /* guest base is supported */
 #define TCG_TARGET_HAS_GUEST_BASE
 
+#ifdef __OpenBSD__
+#include <machine/sysarch.h>
+#else
 #include <sys/cachectl.h>
+#endif
 
 static inline void flush_icache_range(unsigned long start, unsigned long stop)
 {
Signature · 6 lines
1.7.5

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net