]> Git Repo - qemu.git/blobdiff - target-s390x/misc_helper.c
target-s390x: PER instruction-fetch event support
[qemu.git] / target-s390x / misc_helper.c
index bc28f9d13da691e72c5a8385dfff158a03a994a3..73d01935be1ce101821aa50645b5b555a03c7cf5 100644 (file)
@@ -619,4 +619,12 @@ void HELPER(per_branch)(CPUS390XState *env, uint64_t from, uint64_t to)
         }
     }
 }
+
+void HELPER(per_ifetch)(CPUS390XState *env, uint64_t addr)
+{
+    if ((env->cregs[9] & PER_CR9_EVENT_IFETCH) && get_per_in_range(env, addr)) {
+        env->per_address = addr;
+        env->per_perc_atmid = PER_CODE_EVENT_IFETCH | get_per_atmid(env);
+    }
+}
 #endif
This page took 0.021786 seconds and 4 git commands to generate.