Re: [PATCH] spice-protocol: e2k arch support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 15, 2017 at 08:32:47AM -0400, Marc-André Lureau wrote:
> Please send the patches to the spice-devel@xxxxxxxxxxxxxxxxxxxxx mailing list

Thank you; here they go again.

> ----- Original Message -----
> > please find two trivial patches against 0.12.13 attached
> > that (1) introduce one more architecture detection, and
> > (2) fix "endianess" spelling; tested with libspice-gtk
> > build.  CCing our package maintainer.

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info
>From 49cac1654464ff371e2c1e3a1c211093bb84914b Mon Sep 17 00:00:00 2001
From: Michael Shigorin <mike@xxxxxxxxxxxx>
Date: Fri, 15 Sep 2017 11:38:25 +0300
Subject: [PATCH 1/2] macros.h: added e2k detection

Elbrus 2000 is a little-endian architecture.
---
 spice/macros.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/spice/macros.h b/spice/macros.h
index 1f8a5c8..f703a76 100644
--- a/spice/macros.h
+++ b/spice/macros.h
@@ -404,7 +404,8 @@
 #  if defined(__LITTLE_ENDIAN__) || defined(__ARMEL__) \
       || defined(__THUMBEL__) || defined(__AARCH64EL__) \
       || defined(_MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__) \
-      || defined(__amd64__) || defined(__x86_64__) || defined(__i386__)
+      || defined(__amd64__) || defined(__x86_64__) || defined(__i386__) \
+      || defined(__e2k__)
 #    define SPICE_ENDIAN SPICE_ENDIAN_LITTLE
 #  endif
 #  if defined(__BIG_ENDIAN__) || defined(__ARMEB__) \
-- 
2.7.4

>From 242ff5d5853d3c11f7c71468ab843cd4d3c10093 Mon Sep 17 00:00:00 2001
From: Michael Shigorin <mike@xxxxxxxxxxxx>
Date: Fri, 15 Sep 2017 11:39:34 +0300
Subject: [PATCH 2/2] macros.h: s/endianess/endianness/g

A three-time typo, obviously :)
---
 spice/macros.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/spice/macros.h b/spice/macros.h
index f703a76..79d00ee 100644
--- a/spice/macros.h
+++ b/spice/macros.h
@@ -379,7 +379,7 @@
 #endif /* generic */
 
 
-/* detect endianess */
+/* detect endianness */
 #undef SPICE_ENDIAN
 #define SPICE_ENDIAN_LITTLE 4321
 #define SPICE_ENDIAN_BIG    1234
@@ -428,11 +428,11 @@
 #endif
 
 #if !defined(SPICE_ENDIAN)
-#error Unable to detect processor endianess
+#error Unable to detect processor endianness
 #endif
 
 #if SPICE_ENDIAN == SPICE_ENDIAN_PDP
-#error PDP endianess not supported by Spice
+#error PDP endianness not supported by Spice
 #endif
 
 
-- 
2.7.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]