[PATCH] linux-user: Fix comment typo in arm cpu_loop code

Peter Maydell posted 1 patch 1 week, 6 days ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220114182535.3804783-1-peter.maydell@linaro.org
Maintainers: Laurent Vivier <laurent@vivier.eu>
linux-user/arm/cpu_loop.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH] linux-user: Fix comment typo in arm cpu_loop code

Posted by Peter Maydell 1 week, 6 days ago
Fix a typo in a comment in the arm cpu_loop code.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 linux-user/arm/cpu_loop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c
index f153ab503a8..032e1ffddfb 100644
--- a/linux-user/arm/cpu_loop.c
+++ b/linux-user/arm/cpu_loop.c
@@ -434,8 +434,8 @@ void cpu_loop(CPUARMState *env)
             case 0x6: /* Access flag fault, level 2 */
             case 0x9: /* Domain fault, level 1 */
             case 0xb: /* Domain fault, level 2 */
-            case 0xd: /* Permision fault, level 1 */
-            case 0xf: /* Permision fault, level 2 */
+            case 0xd: /* Permission fault, level 1 */
+            case 0xf: /* Permission fault, level 2 */
                 si_signo = TARGET_SIGSEGV;
                 si_code = TARGET_SEGV_ACCERR;
                 break;
-- 
2.25.1


Re: [PATCH] linux-user: Fix comment typo in arm cpu_loop code

Posted by Laurent Vivier 1 week, 2 days ago
Le 14/01/2022 à 19:25, Peter Maydell a écrit :
> Fix a typo in a comment in the arm cpu_loop code.
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
>   linux-user/arm/cpu_loop.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c
> index f153ab503a8..032e1ffddfb 100644
> --- a/linux-user/arm/cpu_loop.c
> +++ b/linux-user/arm/cpu_loop.c
> @@ -434,8 +434,8 @@ void cpu_loop(CPUARMState *env)
>               case 0x6: /* Access flag fault, level 2 */
>               case 0x9: /* Domain fault, level 1 */
>               case 0xb: /* Domain fault, level 2 */
> -            case 0xd: /* Permision fault, level 1 */
> -            case 0xf: /* Permision fault, level 2 */
> +            case 0xd: /* Permission fault, level 1 */
> +            case 0xf: /* Permission fault, level 2 */
>                   si_signo = TARGET_SIGSEGV;
>                   si_code = TARGET_SEGV_ACCERR;
>                   break;

Applied to my trivial-patches branch.

Thanks,
Laurent

Re: [PATCH] linux-user: Fix comment typo in arm cpu_loop code

Posted by Warner Losh 1 week, 6 days ago
On Fri, Jan 14, 2022 at 11:25 AM Peter Maydell <peter.maydell@linaro.org>
wrote:

> Fix a typo in a comment in the arm cpu_loop code.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
>  linux-user/arm/cpu_loop.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>

Reviewed-by: Warner Losh <imp@bsdimp.com>


> diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c
> index f153ab503a8..032e1ffddfb 100644
> --- a/linux-user/arm/cpu_loop.c
> +++ b/linux-user/arm/cpu_loop.c
> @@ -434,8 +434,8 @@ void cpu_loop(CPUARMState *env)
>              case 0x6: /* Access flag fault, level 2 */
>              case 0x9: /* Domain fault, level 1 */
>              case 0xb: /* Domain fault, level 2 */
> -            case 0xd: /* Permision fault, level 1 */
> -            case 0xf: /* Permision fault, level 2 */
> +            case 0xd: /* Permission fault, level 1 */
> +            case 0xf: /* Permission fault, level 2 */
>                  si_signo = TARGET_SIGSEGV;
>                  si_code = TARGET_SEGV_ACCERR;
>                  break;
> --
> 2.25.1
>
>