aboutsummaryrefslogtreecommitdiff
path: root/target-s390x/helper.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-02-03 21:33:16 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-02-04 15:24:15 -0600
commitb22dd1243f38286263d40496ce5298a8a7d96eea (patch)
tree6d3b5fa643572ba3a2392bccf74f6f2b1501a049 /target-s390x/helper.c
parent0123c486367ab77c3c5ed349616a862eb474a03f (diff)
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 <sw@weilnetz.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-s390x/helper.c')
-rw-r--r--target-s390x/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-s390x/helper.c b/target-s390x/helper.c
index 95f1ff5443..043feb2739 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;