Skip to contentSkip to conversation

wxx patch queue for 2.6

GIT PULL Applied Stefan Weil 2 participants 5 messages Mar 22, 2016 – Mar 23, 2016

lore
Share & tools
lore
#0 lore raw

The following changes since commit 459621ac1a505ef7dee769295ee2e6c835b2314d:

Merge remote-tracking branch 'remotes/mdroth/tags/qga-pull-2016-03-21-tag' into staging (2016-03-22 17:39:48 +0000)

are available in the git repository at:

git://qemu.weilnetz.de/qemu.git tags/pull-wxx-20160322

for you to fetch changes up to ae6296342a1e0785cafd6ce2530f022d187e20e7:

wxx: Add support for ncurses (2016-03-22 19:17:38 +0100)

----------------------------------------------------------------
wxx patch queue

----------------------------------------------------------------
Stefan Weil (3):
Include setjmp.h in qemu/osdep.h (bug fix for w64) Remove unneeded include statements for setjmp.h
wxx: Add support for ncurses

 configure                    | 2 +-
 disas/i386.c                 | 2 --
 disas/m68k.c                 | 2 --
 include/qemu/osdep.h         | 3 +++
 include/qom/cpu.h            | 1 -
 scripts/clean-includes       | 2 +-
 util/coroutine-sigaltstack.c | 1 -
 util/coroutine-ucontext.c    | 1 -
 util/oslib-posix.c           | 1 -
 9 files changed, 5 insertions(+), 10 deletions(-)
#1 lore raw

[Qemu-devel] [PULL 1/3] Include setjmp.h in qemu/osdep.h (bug fix for w64)

setjmp must be declared before sysemu/os-win32.h because it is redefined there for 64 bit Windows.

---
 include/qemu/osdep.h | 3 +++
 1 file changed, 3 insertions(+)
include/qemu/osdep.h +3 -0
index 4538fdc..5bb374c 100644
@@ -76,6 +76,9 @@ extern int daemon(int, int);
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <assert.h>
+/* setjmp must be declared before sysemu/os-win32.h
+ * because it is redefined there. */
+#include <setjmp.h>
 #include <signal.h>
 
 #ifdef __OpenBSD__
Signature · 1 line
2.1.4
#2 lore raw

[Qemu-devel] [PULL 2/3] Remove unneeded include statements for setjmp.h

In reply to Stefan Weil

As soon as setjmp.h is included from qemu/osdep.h, those old include statements are no longer needed.

Add also setjmp.h to the list in scripts/clean-includes.

---
 disas/i386.c                 | 2 --
 disas/m68k.c                 | 2 --
 include/qom/cpu.h            | 1 -
 scripts/clean-includes       | 2 +-
 util/coroutine-sigaltstack.c | 1 -
 util/coroutine-ucontext.c    | 1 -
 util/oslib-posix.c           | 1 -
 7 files changed, 1 insertion(+), 9 deletions(-)
disas/i386.c +0 -2
index d40b72a..394ffe1 100644
@@ -153,8 +153,6 @@
 /* opcodes/i386-dis.c r1.126 */
 #include "qemu-common.h"
 
-#include <setjmp.h>
-
 static int fetch_data2(struct disassemble_info *, bfd_byte *);
 static int fetch_data(struct disassemble_info *, bfd_byte *);
 static void ckprefix (void);
disas/m68k.c +0 -2
index 0412ecd..8f74ae1 100644
@@ -615,8 +615,6 @@ static const char *const reg_half_names[] =
 /* Maximum length of an instruction.  */
 #define MAXLEN 22
 
-#include <setjmp.h>
-
 struct private
 {
   /* Points to first byte not fetched.  */
include/qom/cpu.h +0 -1
index 7052eee..4a6def7 100644
@@ -20,7 +20,6 @@
 #ifndef QEMU_CPU_H
 #define QEMU_CPU_H
 
-#include <setjmp.h>
 #include "hw/qdev-core.h"
 #include "disas/bfd.h"
 #include "exec/hwaddr.h"
scripts/clean-includes +1 -1
index 177d253..fb2a49c 100755
@@ -140,7 +140,7 @@ for f in "$@"; do
   perl -n -i -e 'print if !/\s*#\s*include\s*(["<][^>"]*[">])/ ||
                           ! (grep { $_ eq $1 } qw (
            "config-host.h" "qemu/compiler.h" "config.h"
-           <stdarg.h> <stddef.h> <stdbool.h> <stdint.h> <sys/types.h>
+           <setjmp.h> <stdarg.h> <stddef.h> <stdbool.h> <stdint.h> <sys/types.h>
            <stdlib.h> <stdio.h> <string.h> <strings.h> <inttypes.h>
            <limits.h> <unistd.h> <time.h> <ctype.h> <errno.h> <fcntl.h>
            <sys/stat.h> <sys/time.h> <assert.h> <signal.h>
util/coroutine-sigaltstack.c +0 -1
index 6b8aee7..a7c3366 100644
@@ -26,7 +26,6 @@
 #undef _FORTIFY_SOURCE
 #endif
 #include "qemu/osdep.h"
-#include <setjmp.h>
 #include <pthread.h>
 #include "qemu-common.h"
 #include "qemu/coroutine_int.h"
util/coroutine-ucontext.c +0 -1
index 4914f60..2bb7e10 100644
@@ -23,7 +23,6 @@
 #undef _FORTIFY_SOURCE
 #endif
 #include "qemu/osdep.h"
-#include <setjmp.h>
 #include <ucontext.h>
 #include "qemu-common.h"
 #include "qemu/coroutine_int.h"
util/oslib-posix.c +0 -1
index 7615be4..05c44ed 100644
@@ -49,7 +49,6 @@
 #include "qemu/sockets.h"
 #include <sys/mman.h>
 #include <libgen.h>
-#include <setjmp.h>
 #include <sys/signal.h>
 
 #ifdef CONFIG_LINUX
Signature · 1 line
2.1.4
#3 lore raw

[Qemu-devel] [PULL 3/3] wxx: Add support for ncurses

In reply to Stefan Weil

We used to support only pdcurses for Windows, but recently Cygwin added mingw64-i686-ncurses and mingw64-x86_64-ncurses packages which are supported now, too.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index b88d0db..f4a03b8 100755
@@ -2836,7 +2836,7 @@ fi
 # curses probe
 if test "$curses" != "no" ; then
   if test "$mingw32" = "yes" ; then
-    curses_list="-lpdcurses"
+    curses_list="$($pkg_config --libs ncurses 2>/dev/null):-lpdcurses"
   else
     curses_list="$($pkg_config --libs ncurses 2>/dev/null):-lncurses:-lcurses"
   fi
Signature · 1 line
2.1.4
#4 lore raw
In reply to Stefan Weil
Quoted 9 lines · Stefan Weil

The following changes since commit 459621ac1a505ef7dee769295ee2e6c835b2314d:

Merge remote-tracking branch 'remotes/mdroth/tags/qga-pull-2016-03-21-tag' into staging (2016-03-22 17:39:48 +0000)

are available in the git repository at:

git://qemu.weilnetz.de/qemu.git tags/pull-wxx-20160322

Quoted 8 lines

for you to fetch changes up to ae6296342a1e0785cafd6ce2530f022d187e20e7:

wxx: Add support for ncurses (2016-03-22 19:17:38 +0100)

----------------------------------------------------------------
wxx patch queue

----------------------------------------------------------------

Applied, thanks.

-- PMM