target-s390x: correctly initialize ext interrupt queue
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 15 Jun 2015 15:57:04 +0000 (17:57 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 17 Jun 2015 10:40:50 +0000 (12:40 +0200)
commit7107e5a756317151666d47d1bc1e170293babaff
tree6bbae28005447073685fd4e16ad4021666b0ffce
parent06e3c077daa08c0a616e9507eb737401883ab645
target-s390x: correctly initialize ext interrupt queue

env->ext_index should be initialized to -1 to mark the external
interrupt queue as emtpy. This should not be done in s390_cpu_initfn
as all the interrupt fields are later reset to 0 by the memset in
s390_cpu_initial_reset or s390_cpu_full_reset. Move the initialization
there.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-s390x/cpu.c