From: Stefan Weil Date: Sun, 3 Feb 2013 20:33:16 +0000 (+0100) Subject: target-s390x: Fix wrong comparison in interrupt handling X-Git-Tag: v1.4.0-rc1~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b22dd1243f38286263d40496ce5298a8a7d96eea;p=thirdparty%2Fqemu.git target-s390x: Fix wrong comparison in interrupt handling 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 Signed-off-by: Anthony Liguori --- diff --git a/target-s390x/helper.c b/target-s390x/helper.c index 95f1ff54439..043feb27397 100644 --- a/target-s390x/helper.c +++ b/target-s390x/helper.c @@ -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;