Message ID | 20190822135839.32340-5-cohuck@redhat.com |
---|---|
State | New |
Headers | show |
Series | [PULL,1/7] s390x/tcg: Fix VERIM with 32/64 bit elements | expand |
diff --git a/target/s390x/helper.c b/target/s390x/helper.c index 1350ad319aba..948c0398d461 100644 --- a/target/s390x/helper.c +++ b/target/s390x/helper.c @@ -58,6 +58,11 @@ hwaddr s390_cpu_get_phys_page_debug(CPUState *cs, vaddr vaddr) vaddr &= 0x7fffffff; } + /* We want to read the code (e.g., see what we are single-stepping).*/ + if (asc != PSW_ASC_HOME) { + asc = PSW_ASC_PRIMARY; + } + if (mmu_translate(env, vaddr, MMU_INST_FETCH, asc, &raddr, &prot, false)) { return -1; }