diff mbox

[v1,1/2] target/s390x: correctly indicate PER nullification

Message ID 20170609142156.18767-2-david@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

David Hildenbrand June 9, 2017, 2:21 p.m. UTC
Signed-off-by: David Hildenbrand <david@redhat.com>
---
 target/s390x/misc_helper.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/target/s390x/misc_helper.c b/target/s390x/misc_helper.c
index 75fd13e..9f51af3 100644
--- a/target/s390x/misc_helper.c
+++ b/target/s390x/misc_helper.c
@@ -671,6 +671,7 @@  void HELPER(per_ifetch)(CPUS390XState *env, uint64_t addr)
         if (env->cregs[9] & PER_CR9_EVENT_NULLIFICATION) {
             CPUState *cs = CPU(s390_env_get_cpu(env));
 
+            env->per_perc_atmid |= PER_CODE_EVENT_NULLIFICATION;
             env->int_pgm_code = PGM_PER;
             env->int_pgm_ilen = get_ilen(cpu_ldub_code(env, addr));