]> git.proxmox.com Git - qemu.git/commitdiff
target-s390x: Fix wrong comparison in interrupt handling
authorStefan Weil <sw@weilnetz.de>
Sun, 3 Feb 2013 20:33:16 +0000 (21:33 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 4 Feb 2013 21:24:15 +0000 (15:24 -0600)
gcc with -Wextra complains about an ordered pointer comparison:

target-s390x/helper.c:660:27: warning:
 ordered comparison of pointer with integer zero [-Wextra]

Obviously the index was missing in the code.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-s390x/helper.c

index 95f1ff54439d741d66adde455c048a928d35d912..043feb2739778797bff6b09162b2a3cba9e82afd 100644 (file)
@@ -657,7 +657,7 @@ static void do_io_interrupt(CPUS390XState *env)
         cpu_unmap_lowcore(lowcore);
 
         env->io_index[isc]--;
-        if (env->io_index >= 0) {
+        if (env->io_index[isc] >= 0) {
             disable = 0;
         }
         break;