OSDN Git Service

target/s390x: fix pgm irq ilen for stsi
authorDavid Hildenbrand <david@redhat.com>
Fri, 21 Jul 2017 12:56:04 +0000 (14:56 +0200)
committerCornelia Huck <cohuck@redhat.com>
Fri, 28 Jul 2017 08:06:25 +0000 (10:06 +0200)
The instruction is 4 bytes long.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170721125609.11117-2-david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/misc_helper.c

index 44c5c40..d23ffcd 100644 (file)
@@ -192,7 +192,7 @@ uint32_t HELPER(stsi)(CPUS390XState *env, uint64_t a0,
     if ((r0 & STSI_LEVEL_MASK) <= STSI_LEVEL_3 &&
         ((r0 & STSI_R0_RESERVED_MASK) || (r1 & STSI_R1_RESERVED_MASK))) {
         /* valid function code, invalid reserved bits */
-        program_interrupt(env, PGM_SPECIFICATION, 2);
+        program_interrupt(env, PGM_SPECIFICATION, 4);
     }
 
     sel1 = r0 & STSI_R0_SEL1_MASK;