[PATCH 1/3] target/loongarch: Correct spelling in helper_csrwr_pwcl()

Bibo Mao posted 3 patches 5 months ago
Maintainers: Song Gao <gaosong@loongson.cn>
[PATCH 1/3] target/loongarch: Correct spelling in helper_csrwr_pwcl()
Posted by Bibo Mao 5 months ago
There is small typo issue in function helper_csrwr_pwcl(), this patch
corrects this issue.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
---
 target/loongarch/tcg/csr_helper.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/loongarch/tcg/csr_helper.c b/target/loongarch/tcg/csr_helper.c
index 2942d7feb8..46d331ce8a 100644
--- a/target/loongarch/tcg/csr_helper.c
+++ b/target/loongarch/tcg/csr_helper.c
@@ -131,8 +131,8 @@ target_ulong helper_csrwr_pwcl(CPULoongArchState *env, target_ulong val)
     }
     if (!check_ps(env, ptbase)) {
          qemu_log_mask(LOG_GUEST_ERROR,
-                      "Attrmpted set ptbase 2^%d\n", ptbase);
+                      "Attempted set ptbase 2^%d\n", ptbase);
     }
-    env->CSR_PWCL =val;
+    env->CSR_PWCL = val;
     return old_v;
 }
-- 
2.39.3
Re: [PATCH 1/3] target/loongarch: Correct spelling in helper_csrwr_pwcl()
Posted by gaosong 4 months, 2 weeks ago
在 2025/6/18 下午2:26, Bibo Mao 写道:
> There is small typo issue in function helper_csrwr_pwcl(), this patch
> corrects this issue.
>
> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
> ---
>   target/loongarch/tcg/csr_helper.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Song Gao <gaosong@loongson.cn>

Thanks.
Song Gao
> diff --git a/target/loongarch/tcg/csr_helper.c b/target/loongarch/tcg/csr_helper.c
> index 2942d7feb8..46d331ce8a 100644
> --- a/target/loongarch/tcg/csr_helper.c
> +++ b/target/loongarch/tcg/csr_helper.c
> @@ -131,8 +131,8 @@ target_ulong helper_csrwr_pwcl(CPULoongArchState *env, target_ulong val)
>       }
>       if (!check_ps(env, ptbase)) {
>            qemu_log_mask(LOG_GUEST_ERROR,
> -                      "Attrmpted set ptbase 2^%d\n", ptbase);
> +                      "Attempted set ptbase 2^%d\n", ptbase);
>       }
> -    env->CSR_PWCL =val;
> +    env->CSR_PWCL = val;
>       return old_v;
>   }