Skip to contentSkip to conversation

Trivial branch patches

GIT PULL Applied Laurent Vivier 3 participants 17 messages Aug 21, 2019 – Aug 22, 2019

lore
Share & tools
lore
#0 lore raw

The following changes since commit 17dc57990320edaad52ac9ea808be9719c91cea6:

Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2019-08-20' into staging (2019-08-20 14:14:20 +0100)

are available in the Git repository at:

git://github.com/vivier/qemu.git tags/trivial-branch-pull-request

for you to fetch changes up to 8a9224a250094222e9ff302b95e379c3e71d3c8a:

hw/display: Compile various display devices as common object (2019-08-21 13:17:22 +0200)

----------------------------------------------------------------
Various trivial fixes

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

Carlo Marcelo Arenas Belón (2):
configure: remove obsoleted $sparc_cpu variable
configure: fix sdl detection using sdl2-config

Marc-André Lureau (1):
misc: fix naming scheme of compatiblity arrays

Michal Privoznik (1):
.gitignore: ignore some vhost-user* related files

Philippe Mathieu-Daudé (9):
hw/net/e1000: Fix erroneous comment
json: Move switch 'fall through' comment to correct place hw/dma/omap_dma: Move switch 'fall through' comment to correct place hw/ipmi: Rewrite a fall through comment
target/ppc: Rewrite a fall through comment
vl: Rewrite a fall through comment
spapr_events: Rewrite a fall through comment hw/display/sm501: Remove unused include
hw/display: Compile various display devices as common object

[email protected] (1):
test: Use g_strndup instead of plain strndup

 .gitignore                |  3 +++
 configure                 | 12 ++++--------
 docs/devel/migration.rst  |  2 +-
 hw/display/Makefile.objs  | 18 +++++++++---------
 hw/display/sm501.c        |  1 -
 hw/dma/omap_dma.c         |  2 +-
 hw/i386/pc_piix.c         |  2 +-
 hw/ipmi/ipmi_bmc_extern.c |  3 +--
 hw/net/e1000.c            |  2 +-
 hw/ppc/spapr_events.c     |  2 +-
 qobject/json-parser.c     |  2 +-
 target/ppc/mmu_helper.c   |  6 +++---
 tests/check-qjson.c       |  2 +-
 tests/migration/stress.c  |  8 ++++----
 vl.c                      |  2 +-
 15 files changed, 32 insertions(+), 35 deletions(-)
Signature · 1 line
2.21.0
#1 lore raw

[Qemu-devel] [PULL 14/14] hw/display: Compile various display devices as common object

From: Philippe Mathieu-Daudé <[email protected]>

Various display devices are not target-specific and can be compiled once for all the targets.
After this commit, the 'make world' target is reduced by 54 objects

Message-Id: <[email protected]>

---
 hw/display/Makefile.objs | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
hw/display/Makefile.objs +9 -9
index a64998fc7b23..0f11d55b14ef 100644
@@ -31,13 +31,13 @@ obj-$(CONFIG_MILKYMIST_TMU2) += milkymist-tmu2.o
 milkymist-tmu2.o-cflags := $(X11_CFLAGS) $(OPENGL_CFLAGS)
 milkymist-tmu2.o-libs := $(X11_LIBS) $(OPENGL_LIBS)
 
-obj-$(CONFIG_OMAP) += omap_dss.o
+common-obj-$(CONFIG_OMAP) += omap_dss.o
 obj-$(CONFIG_OMAP) += omap_lcdc.o
-obj-$(CONFIG_PXA2XX) += pxa2xx_lcd.o
-obj-$(CONFIG_RASPI) += bcm2835_fb.o
-obj-$(CONFIG_SM501) += sm501.o
-obj-$(CONFIG_TCX) += tcx.o
-obj-$(CONFIG_CG3) += cg3.o
+common-obj-$(CONFIG_PXA2XX) += pxa2xx_lcd.o
+common-obj-$(CONFIG_RASPI) += bcm2835_fb.o
+common-obj-$(CONFIG_SM501) += sm501.o
+common-obj-$(CONFIG_TCX) += tcx.o
+common-obj-$(CONFIG_CG3) += cg3.o
 
 obj-$(CONFIG_VGA) += vga.o
 
@@ -53,7 +53,7 @@ virtio-gpu.o-cflags := $(VIRGL_CFLAGS)
 virtio-gpu.o-libs += $(VIRGL_LIBS)
 virtio-gpu-3d.o-cflags := $(VIRGL_CFLAGS)
 virtio-gpu-3d.o-libs += $(VIRGL_LIBS)
-obj-$(CONFIG_DPCD) += dpcd.o
-obj-$(CONFIG_XLNX_ZYNQMP_ARM) += xlnx_dp.o
+common-obj-$(CONFIG_DPCD) += dpcd.o
+common-obj-$(CONFIG_XLNX_ZYNQMP_ARM) += xlnx_dp.o
 
-obj-$(CONFIG_ATI_VGA) += ati.o ati_2d.o ati_dbg.o
+common-obj-$(CONFIG_ATI_VGA) += ati.o ati_2d.o ati_dbg.o
Signature · 1 line
2.21.0
#2 lore raw

[Qemu-devel] [PULL 10/14] target/ppc: Rewrite a fall through comment

In reply to Laurent Vivier

From: Philippe Mathieu-Daudé <[email protected]>

GCC9 is confused by this comment when building with CFLAG -Wimplicit-fallthrough=2:

target/ppc/mmu_helper.c: In function ‘dump_mmu’:
target/ppc/mmu_helper.c:1349:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
1349 | if (ppc64_v3_radix(env_archcpu(env))) {
| ^
target/ppc/mmu_helper.c:1356:5: note: here

   1356 |     default:
        |     ^~~~~~~

cc1: all warnings being treated as errors

Rewrite the comment using 'fall through' which is recognized by GCC and static analyzers.

Message-Id: <[email protected]>

---
 target/ppc/mmu_helper.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
target/ppc/mmu_helper.c +3 -3
index 55f7a7f16a12..86c667b09415 100644
@@ -100,7 +100,7 @@ static int pp_check(int key, int pp, int nx)
         case 0x1:
         case 0x2:
             access |= PAGE_WRITE;
-            /* No break here */
+            /* fall through */
         case 0x3:
             access |= PAGE_READ;
             break;
@@ -708,7 +708,7 @@ static int mmu40x_get_physical_address(CPUPPCState *env, mmu_ctx_t *ctx,
             if (pr != 0) {
                 goto check_perms;
             }
-            /* No break here */
+            /* fall through */
         case 0x3:
             /* All accesses granted */
             ctx->prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC;
@@ -722,7 +722,7 @@ static int mmu40x_get_physical_address(CPUPPCState *env, mmu_ctx_t *ctx,
                 ret = -2;
                 break;
             }
-            /* No break here */
+            /* fall through */
         case 0x1:
         check_perms:
             /* Check from TLB entry */
Signature · 1 line
2.21.0
#3 lore raw

[Qemu-devel] [PULL 06/14] hw/net/e1000: Fix erroneous comment

In reply to Laurent Vivier

From: Philippe Mathieu-Daudé <[email protected]>

Missed during the QOM convertion in 9af21dbee14.

Message-Id: <[email protected]>

---
 hw/net/e1000.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/net/e1000.c +1 -1
index 8ae4e08f1e90..a73f8d404e6c 100644
@@ -1608,7 +1608,7 @@ static const VMStateDescription vmstate_e1000 = {
 
 /*
  * EEPROM contents documented in Tables 5-2 and 5-3, pp. 98-102.
- * Note: A valid DevId will be inserted during pci_e1000_init().
+ * Note: A valid DevId will be inserted during pci_e1000_realize().
  */
 static const uint16_t e1000_eeprom_template[64] = {
     0x0000, 0x0000, 0x0000, 0x0000,      0xffff, 0x0000,      0x0000, 0x0000,
Signature · 1 line
2.21.0
#4 lore raw

[Qemu-devel] [PULL 01/14] test: Use g_strndup instead of plain strndup

In reply to Laurent Vivier

From: "[email protected]" <[email protected]>

Due to memory management rules. See HACKING.

Message-Id: <dce313b46d294ada8826d34609a3447e@tpw09926dag18e.domain1.systemhost.net>

---
 tests/check-qjson.c      | 2 +-
 tests/migration/stress.c | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
tests/check-qjson.c +1 -1
index fa2afccb0a24..07a773e6530b 100644
@@ -767,7 +767,7 @@ static void utf8_string(void)
                     if (*end == ' ') {
                         end++;
                     }
-                    in = strndup(tail, end - tail);
+                    in = g_strndup(tail, end - tail);
                     str = from_json_str(in, j, NULL);
                     g_assert(!str);
                     g_free(in);
tests/migration/stress.c +4 -4
index 49a03aab7b83..d9aa4afe928b 100644
@@ -104,9 +104,9 @@ static int get_command_arg_str(const char *name,
     }
 
     if (end)
-        *val = strndup(start, end - start);
+        *val = g_strndup(start, end - start);
     else
-        *val = strdup(start);
+        *val = g_strdup(start);
     return 1;
 }
 
@@ -126,10 +126,10 @@ static int get_command_arg_ull(const char *name,
     if (errno || *end) {
         fprintf(stderr, "%s (%05d): ERROR: cannot parse %s value %s\n",
                 argv0, gettid(), name, valstr);
-        free(valstr);
+        g_free(valstr);
         return -1;
     }
-    free(valstr);
+    g_free(valstr);
     return 0;
 }
 
Signature · 1 line
2.21.0
#5 lore raw

[Qemu-devel] [PULL 12/14] spapr_events: Rewrite a fall through comment

In reply to Laurent Vivier

From: Philippe Mathieu-Daudé <[email protected]>

GCC9 is confused by this comment when building with CFLAG -Wimplicit-fallthrough=2:

CC ppc64-softmmu/hw/ppc/spapr_rtc.o
hw/ppc/spapr_events.c: In function ‘rtas_event_log_to_source’:
hw/ppc/spapr_events.c:312:12: error: this statement may fall through [-Werror=implicit-fallthrough=]

    312 |         if (spapr_ovec_test(spapr->ov5_cas, OV5_HP_EVT)) {
        |            ^
  hw/ppc/spapr_events.c:317:5: note: here
    317 |     case RTAS_LOG_TYPE_EPOW:
        |     ^~~~

cc1: all warnings being treated as errors

Rewrite the comment using 'fall through' which is recognized by GCC and static analyzers.

Message-Id: <[email protected]>

---
 hw/ppc/spapr_events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/ppc/spapr_events.c +1 -1
index 163a6cd25b45..0e4c19523aea 100644
@@ -314,7 +314,7 @@ rtas_event_log_to_source(SpaprMachineState *spapr, int log_type)
             g_assert(source->enabled);
             break;
         }
-        /* fall back to epow for legacy hotplug interrupt source */
+        /* fall through back to epow for legacy hotplug interrupt source */
     case RTAS_LOG_TYPE_EPOW:
         source = spapr_event_sources_get_source(spapr->event_sources,
                                                 EVENT_CLASS_EPOW);
Signature · 1 line
2.21.0
#6 lore raw

[Qemu-devel] [PULL 13/14] hw/display/sm501: Remove unused include

In reply to Laurent Vivier

From: Philippe Mathieu-Daudé <[email protected]>

The "cpu.h" include makes devices target-specific. Since it is not used, remove it, so the device become generic (we can now compile it once for all targets).

Message-Id: <[email protected]> [lv: fix conflict with 650d103d3ea9
("Include hw/hw.h exactly where needed")]

---
 hw/display/sm501.c | 1 -
 1 file changed, 1 deletion(-)
hw/display/sm501.c +0 -1
index d9e5762e367a..1f33c87e654e 100644
@@ -28,7 +28,6 @@
 #include "qapi/error.h"
 #include "qemu/log.h"
 #include "qemu/module.h"
-#include "cpu.h"
 #include "hw/char/serial.h"
 #include "ui/console.h"
 #include "hw/sysbus.h"
Signature · 1 line
2.21.0
#7 lore raw

[Qemu-devel] [PULL 03/14] configure: remove obsoleted $sparc_cpu variable

In reply to Laurent Vivier

From: Carlo Marcelo Arenas Belón <[email protected]>

9b9c37c364 ("tcg-sparc: Assume v9 cpu always, i.e. force v8plus in 32-bit mode.", 2012-09-21) removed the need for this variable and most of the references to it, but this one.

Remove defunct code, no effect or functionality change expected.

Message-Id: <[email protected]>

---
 configure | 3 ---
 1 file changed, 3 deletions(-)
configure +0 -3
index 714e7fb6a1fb..4e7b79c826a2 100755
@@ -6384,9 +6384,6 @@ if test "$vnc" = "yes" ; then
     echo "VNC JPEG support  $vnc_jpeg"
     echo "VNC PNG support   $vnc_png"
 fi
-if test -n "$sparc_cpu"; then
-    echo "Target Sparc Arch $sparc_cpu"
-fi
 echo "xen support       $xen"
 if test "$xen" = "yes" ; then
   echo "xen ctrl version  $xen_ctrl_version"
Signature · 1 line
2.21.0
#8 lore raw

[Qemu-devel] [PULL 11/14] vl: Rewrite a fall through comment

In reply to Laurent Vivier

From: Philippe Mathieu-Daudé <[email protected]>

GCC9 is confused by this comment when building with CFLAG -Wimplicit-fallthrough=2:

vl.c: In function ‘qemu_ref_timedate’:
vl.c:773:15: error: this statement may fall through [-Werror=implicit-fallthrough=]

    773 |         value -= rtc_realtime_clock_offset;
        |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  vl.c:775:5: note: here
    775 |     case QEMU_CLOCK_VIRTUAL:
        |     ^~~~

cc1: all warnings being treated as errors

Rewrite the comment using 'fall through' which is recognized by GCC and static analyzers.

Message-Id: <[email protected]>

---
 vl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
vl.c +1 -1
index edd5390110b2..1588dd8fc337 100644
@@ -772,7 +772,7 @@ static time_t qemu_ref_timedate(QEMUClockType clock)
     switch (clock) {
     case QEMU_CLOCK_REALTIME:
         value -= rtc_realtime_clock_offset;
-        /* no break */
+        /* fall through */
     case QEMU_CLOCK_VIRTUAL:
         value += rtc_ref_start_datetime;
         break;
Signature · 1 line
2.21.0
#9 lore raw

[Qemu-devel] [PULL 07/14] json: Move switch 'fall through' comment to correct place

In reply to Laurent Vivier

From: Philippe Mathieu-Daudé <[email protected]>

Reported by GCC9 when building with CFLAG -Wimplicit-fallthrough=2:

qobject/json-parser.c: In function ‘parse_literal’:
qobject/json-parser.c:492:24: error: this statement may fall through [-Werror=implicit-fallthrough=]

    492 |     case JSON_INTEGER: {
        |                        ^
  qobject/json-parser.c:524:5: note: here
    524 |     case JSON_FLOAT:
        |     ^~~~

Correctly place the 'fall through' comment.

Message-Id: <[email protected]>

---
 qobject/json-parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qobject/json-parser.c +1 -1
index 7d23e12e3379..d083810d3782 100644
@@ -519,8 +519,8 @@ static QObject *parse_literal(JSONParserContext *ctxt)
             }
             assert(ret == -ERANGE);
         }
-        /* fall through to JSON_FLOAT */
     }
+    /* fall through to JSON_FLOAT */
     case JSON_FLOAT:
         /* FIXME dependent on locale; a pervasive issue in QEMU */
         /* FIXME our lexer matches RFC 8259 in forbidding Inf or NaN,
Signature · 1 line
2.21.0
#10 lore raw

[Qemu-devel] [PULL 08/14] hw/dma/omap_dma: Move switch 'fall through' comment to correct place

In reply to Laurent Vivier

From: Philippe Mathieu-Daudé <[email protected]>

Reported by GCC9 when building with CFLAG -Wimplicit-fallthrough=2:

CC hw/dma/omap_dma.o
hw/dma/omap_dma.c: In function ‘omap_dma_write’:
hw/dma/omap_dma.c:1532:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
1532 | if (s->model <= omap_dma_3_1)
| ^
hw/dma/omap_dma.c:1534:5: note: here

   1534 |     case 0x400:
        |     ^~~~

cc1: all warnings being treated as errors

Correctly place the 'fall through' comment.

Message-Id: <[email protected]>

---
 hw/dma/omap_dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/dma/omap_dma.c +1 -1
index eab83c5c3a16..6677237d42a4 100644
@@ -1531,8 +1531,8 @@ static void omap_dma_write(void *opaque, hwaddr addr,
     case 0x404 ... 0x4fe:
         if (s->model <= omap_dma_3_1)
             break;
+        /* fall through */
     case 0x400:
-        /* Fall through. */
         if (omap_dma_sys_write(s, addr, value))
             break;
         return;
Signature · 1 line
2.21.0
#11 lore raw

[Qemu-devel] [PULL 02/14] misc: fix naming scheme of compatiblity arrays

In reply to Laurent Vivier

From: Marc-André Lureau <[email protected]>

Since merge 31ed41889e6e13699871040fe089a2884dca46cb ("Merge remote-tracking branch 'remotes/elmarco/tags/machine-props-pull-request' into staging"), the compat arrays are in lowercase.

Message-Id: <[email protected]>

---
 docs/devel/migration.rst | 2 +-
 hw/i386/pc_piix.c        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
docs/devel/migration.rst +1 -1
index 220059679ac9..f7668ae389c7 100644
@@ -314,7 +314,7 @@ For example:
 
    a) Add a new property using ``DEFINE_PROP_BOOL`` - e.g. support-foo and
       default it to true.
-   b) Add an entry to the ``HW_COMPAT_`` for the previous version that sets
+   b) Add an entry to the ``hw_compat_`` for the previous version that sets
       the property to false.
    c) Add a static bool  support_foo function that tests the property.
    d) Add a subsection with a .needed set to the support_foo function
hw/i386/pc_piix.c +1 -1
index 9e187f856a63..187d846af4b0 100644
@@ -312,7 +312,7 @@ else {
  * pc_compat_*() functions that run on machine-init time and
  * change global QEMU state are deprecated. Please don't create
  * one, and implement any pc-*-2.4 (and newer) compat code in
- * HW_COMPAT_*, PC_COMPAT_*, or * pc_*_machine_options().
+ * hw_compat_*, pc_compat_*, or * pc_*_machine_options().
  */
 
 static void pc_compat_2_3_fn(MachineState *machine)
Signature · 1 line
2.21.0
#12 lore raw

[Qemu-devel] [PULL 05/14] .gitignore: ignore some vhost-user* related files

In reply to Laurent Vivier

From: Michal Privoznik <[email protected]>

Commit d52c454aadc creates '/contrib/vhost-user-gpu/50-qemu-gpu.json' and '/vhost-user-gpu' and commit 06914c97d3a creates '/vhost-user-input' neither of which is ignored by git.

Message-Id: <db150a03315a89a849ab9968e4a5a26110d41424.1562942402.git.mprivozn@redhat.com>

---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +3 -0
index fd6e6c38c7b9..e9bbc006d39e 100644
@@ -65,6 +65,8 @@
 /scsi/qemu-pr-helper
 /vhost-user-scsi
 /vhost-user-blk
+/vhost-user-gpu
+/vhost-user-input
 /fsdev/virtfs-proxy-helper
 *.tmp
 *.[1-9]
@@ -131,6 +133,7 @@
 /docs/interop/qemu-qmp-ref.info*
 /docs/interop/qemu-qmp-ref.txt
 /docs/version.texi
+/contrib/vhost-user-gpu/50-qemu-gpu.json
 *.tps
 .stgit-*
 .git-submodule-status
Signature · 1 line
2.21.0
#13 lore raw

[Qemu-devel] [PULL 09/14] hw/ipmi: Rewrite a fall through comment

In reply to Laurent Vivier

From: Philippe Mathieu-Daudé <[email protected]>

GCC9 is confused by this comment when building with CFLAG -Wimplicit-fallthrough=2:

hw/ipmi/ipmi_bmc_extern.c: In function ‘addchar’:
hw/ipmi/ipmi_bmc_extern.c:178:12: error: this statement may fall through [-Werror=implicit-fallthrough=]

    178 |         ch |= 0x10;
        |         ~~~^~~~~~~
  hw/ipmi/ipmi_bmc_extern.c:181:5: note: here
    181 |     default:
        |     ^~~~~~~

cc1: all warnings being treated as errors
make: *** [rules.mak:69: hw/ipmi/ipmi_bmc_extern.o] Error 1

Rewrite the comment using 'fall through' which is recognized by GCC and static analyzers.

Message-Id: <[email protected]>

---
 hw/ipmi/ipmi_bmc_extern.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
hw/ipmi/ipmi_bmc_extern.c +1 -2
index 573428eca1b2..87da9ff99cf5 100644
@@ -177,8 +177,7 @@ static void addchar(IPMIBmcExtern *ibe, unsigned char ch)
         ibe->outbuf[ibe->outlen] = VM_ESCAPE_CHAR;
         ibe->outlen++;
         ch |= 0x10;
-        /* No break */
-
+        /* fall through */
     default:
         ibe->outbuf[ibe->outlen] = ch;
         ibe->outlen++;
Signature · 1 line
2.21.0
Reviewed-by
#14 lore raw

Re: [Qemu-devel] [PULL 09/14] hw/ipmi: Rewrite a fall through comment

Quoted 12 lines · Laurent Vivier

From: Philippe Mathieu-Daudé <[email protected]>

GCC9 is confused by this comment when building with CFLAG -Wimplicit-fallthrough=2:

hw/ipmi/ipmi_bmc_extern.c: In function ‘addchar’:
hw/ipmi/ipmi_bmc_extern.c:178:12: error: this statement may fall through [-Werror=implicit-fallthrough=]

    178 |         ch |= 0x10;
        |         ~~~^~~~~~~
  hw/ipmi/ipmi_bmc_extern.c:181:5: note: here
    181 |     default:
        |     ^~~~~~~
Quoted 5 lines

cc1: all warnings being treated as errors
make: *** [rules.mak:69: hw/ipmi/ipmi_bmc_extern.o] Error 1

Rewrite the comment using 'fall through' which is recognized by GCC and static analyzers.

Looks good, thanks. I've pulled it into my tree, but if you want to queue it someplace else:

Quoted 27 lines

Message-Id: <[email protected]>

---
 hw/ipmi/ipmi_bmc_extern.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
hw/ipmi/ipmi_bmc_extern.c +1 -2
index 573428eca1b2..87da9ff99cf5 100644
@@ -177,8 +177,7 @@ static void addchar(IPMIBmcExtern *ibe, unsigned char ch)
         ibe->outbuf[ibe->outlen] = VM_ESCAPE_CHAR;
         ibe->outlen++;
         ch |= 0x10;
-        /* No break */
-
+        /* fall through */
     default:
         ibe->outbuf[ibe->outlen] = ch;
         ibe->outlen++;
Signature · 1 line
2.21.0
#15 lore raw

[Qemu-devel] [PULL 04/14] configure: fix sdl detection using sdl2-config

In reply to Laurent Vivier

From: Carlo Marcelo Arenas Belón <[email protected]>

If SDL2 is requested but pkg-config doesn't have a module for it configure should fallback to use sdl*-config, but wasn't able to because and old variable (from SDL) was being used by mistake.

Correct the variable name and complete other related changes so there are no more references to the old SDL.

Fixes 0015ca5cbabe ("ui: remove support for SDL1.2 in favour of SDL2")

Message-Id: <[email protected]>

---
 configure | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
configure +4 -5
index 4e7b79c826a2..cc5ce7940582 100755
@@ -3022,15 +3022,15 @@ fi
 ##########################################
 # SDL probe
 
-# Look for sdl configuration program (pkg-config or sdl-config).  Try
-# sdl-config even without cross prefix, and favour pkg-config over sdl-config.
+# Look for sdl configuration program (pkg-config or sdl2-config).  Try
+# sdl2-config even without cross prefix, and favour pkg-config over sdl2-config.
 
 sdl_probe ()
 {
   if $pkg_config sdl2 --exists; then
     sdlconfig="$pkg_config sdl2"
     sdlversion=$($sdlconfig --modversion 2>/dev/null)
-  elif has ${sdl_config}; then
+  elif has "$sdl2_config"; then
     sdlconfig="$sdl2_config"
     sdlversion=$($sdlconfig --version)
   else
@@ -3041,7 +3041,7 @@ sdl_probe ()
     # no need to do the rest
     return
   fi
-  if test -n "$cross_prefix" && test "$(basename "$sdlconfig")" = sdl-config; then
+  if test -n "$cross_prefix" && test "$(basename "$sdlconfig")" = sdl2-config; then
     echo warning: using "\"$sdlconfig\"" to detect cross-compiled sdl >&2
   fi
 
@@ -8023,7 +8023,6 @@ preserve_env PKG_CONFIG
 preserve_env PKG_CONFIG_LIBDIR
 preserve_env PKG_CONFIG_PATH
 preserve_env PYTHON
-preserve_env SDL_CONFIG
 preserve_env SDL2_CONFIG
 preserve_env SMBD
 preserve_env STRIP
Signature · 1 line
2.21.0
#16 lore raw
In reply to Laurent Vivier
Quoted 9 lines · Laurent Vivier

The following changes since commit 17dc57990320edaad52ac9ea808be9719c91cea6:

Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2019-08-20' into staging (2019-08-20 14:14:20 +0100)

are available in the Git repository at:

git://github.com/vivier/qemu.git tags/trivial-branch-pull-request

Quoted 8 lines

for you to fetch changes up to 8a9224a250094222e9ff302b95e379c3e71d3c8a:

hw/display: Compile various display devices as common object (2019-08-21 13:17:22 +0200)

----------------------------------------------------------------
Various trivial fixes

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

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/4.2
for any user-visible changes.

-- PMM