Re: [PATCH 1/4] gdbstub: Use specific MMU index when probing MTE addresses

2024-08-07 Thread Gustavo Romero
Hi Richard, On 7/24/24 7:14 AM, Richard Henderson wrote: On 7/23/24 02:07, Gustavo Romero wrote: +    /* Find out the current translation regime for probe. */ +    mmu_index = arm_mmu_idx(env) & ARM_MMU_IDX_COREIDX_MASK; The official interface is cpu_mmu_index(). Otherwise, Reviewed-by: Rich

Re: [PATCH 1/4] gdbstub: Use specific MMU index when probing MTE addresses

2024-07-25 Thread Gustavo Romero
Hi Richard, On 7/24/24 7:14 AM, Richard Henderson wrote: On 7/23/24 02:07, Gustavo Romero wrote: +    /* Find out the current translation regime for probe. */ +    mmu_index = arm_mmu_idx(env) & ARM_MMU_IDX_COREIDX_MASK; The official interface is cpu_mmu_index(). Otherwise, Reviewed-by: Rich

Re: [PATCH 1/4] gdbstub: Use specific MMU index when probing MTE addresses

2024-07-24 Thread Richard Henderson
On 7/23/24 02:07, Gustavo Romero wrote: +/* Find out the current translation regime for probe. */ +mmu_index = arm_mmu_idx(env) & ARM_MMU_IDX_COREIDX_MASK; The official interface is cpu_mmu_index(). Otherwise, Reviewed-by: Richard Henderson r~

[PATCH 1/4] gdbstub: Use specific MMU index when probing MTE addresses

2024-07-22 Thread Gustavo Romero
Use arm_mmu_idx() to determine the specific translation regime (MMU index) before probing addresses using allocation_tag_mem_probe(). Currently, the MMU index is hardcoded to 0 and only works for user mode. By obtaining the specific MMU index according to the translation regime, future use of the