[Qemu-devel] [PATCH] target/arm: Remove stale TODO comment

Peter Maydell posted 1 patch 6 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20180419142151.9862-1-peter.maydell@linaro.org
Test checkpatch passed
Test docker-build@min-glib passed
Test docker-mingw@fedora passed
Test s390x passed
target/arm/helper.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
[Qemu-devel] [PATCH] target/arm: Remove stale TODO comment
Posted by Peter Maydell 6 years ago
Remove a stale TODO comment -- we have now made the arm_ldl_ptw()
and arm_ldq_ptw() functions propagate physical memory read errors
out to their callers.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 target/arm/helper.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/target/arm/helper.c b/target/arm/helper.c
index 2ebd086ef2..0fa02c31e1 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -8681,13 +8681,7 @@ static hwaddr S1_ptw_translate(CPUARMState *env, ARMMMUIdx mmu_idx,
     return addr;
 }
 
-/* All loads done in the course of a page table walk go through here.
- * TODO: rather than ignoring errors from physical memory reads (which
- * are external aborts in ARM terminology) we should propagate this
- * error out so that we can turn it into a Data Abort if this walk
- * was being done for a CPU load/store or an address translation instruction
- * (but not if it was for a debug access).
- */
+/* All loads done in the course of a page table walk go through here. */
 static uint32_t arm_ldl_ptw(CPUState *cs, hwaddr addr, bool is_secure,
                             ARMMMUIdx mmu_idx, ARMMMUFaultInfo *fi)
 {
-- 
2.17.0


Re: [Qemu-devel] [Qemu-arm] [PATCH] target/arm: Remove stale TODO comment
Posted by Philippe Mathieu-Daudé 6 years ago
On 04/19/2018 11:21 AM, Peter Maydell wrote:
> Remove a stale TODO comment -- we have now made the arm_ldl_ptw()
> and arm_ldq_ptw() functions propagate physical memory read errors
> out to their callers.

... in 3b39d734141.

> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

> ---
>  target/arm/helper.c | 8 +-------
>  1 file changed, 1 insertion(+), 7 deletions(-)
> 
> diff --git a/target/arm/helper.c b/target/arm/helper.c
> index 2ebd086ef2..0fa02c31e1 100644
> --- a/target/arm/helper.c
> +++ b/target/arm/helper.c
> @@ -8681,13 +8681,7 @@ static hwaddr S1_ptw_translate(CPUARMState *env, ARMMMUIdx mmu_idx,
>      return addr;
>  }
>  
> -/* All loads done in the course of a page table walk go through here.
> - * TODO: rather than ignoring errors from physical memory reads (which
> - * are external aborts in ARM terminology) we should propagate this
> - * error out so that we can turn it into a Data Abort if this walk
> - * was being done for a CPU load/store or an address translation instruction
> - * (but not if it was for a debug access).
> - */
> +/* All loads done in the course of a page table walk go through here. */
>  static uint32_t arm_ldl_ptw(CPUState *cs, hwaddr addr, bool is_secure,
>                              ARMMMUIdx mmu_idx, ARMMMUFaultInfo *fi)
>  {
>