helper.c (586f3dced9f2b354480c140c070a3d02a0c66a1e) helper.c (3a06f981925bfade8f5e650655fce0b38dbd6649)
1/*
2 * S/390 helpers
3 *
4 * Copyright (c) 2009 Ulrich Hecht
5 * Copyright (c) 2011 Alexander Graf
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public

--- 49 unchanged lines hidden (view full) ---

58 vaddr &= 0x7fffffff;
59 }
60
61 /* We want to read the code (e.g., see what we are single-stepping).*/
62 if (asc != PSW_ASC_HOME) {
63 asc = PSW_ASC_PRIMARY;
64 }
65
1/*
2 * S/390 helpers
3 *
4 * Copyright (c) 2009 Ulrich Hecht
5 * Copyright (c) 2011 Alexander Graf
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public

--- 49 unchanged lines hidden (view full) ---

58 vaddr &= 0x7fffffff;
59 }
60
61 /* We want to read the code (e.g., see what we are single-stepping).*/
62 if (asc != PSW_ASC_HOME) {
63 asc = PSW_ASC_PRIMARY;
64 }
65
66 if (mmu_translate(env, vaddr, MMU_INST_FETCH, asc, &raddr, &prot, false)) {
66 /*
67 * We want to read code even if IEP is active. Use MMU_DATA_LOAD instead
68 * of MMU_INST_FETCH.
69 */
70 if (mmu_translate(env, vaddr, MMU_DATA_LOAD, asc, &raddr, &prot, false)) {
67 return -1;
68 }
69 return raddr;
70}
71
72hwaddr s390_cpu_get_phys_addr_debug(CPUState *cs, vaddr vaddr)
73{
74 hwaddr phys_addr;

--- 356 unchanged lines hidden ---
71 return -1;
72 }
73 return raddr;
74}
75
76hwaddr s390_cpu_get_phys_addr_debug(CPUState *cs, vaddr vaddr)
77{
78 hwaddr phys_addr;

--- 356 unchanged lines hidden ---