]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/loongarch: Correct spelling in helper_csrwr_pwcl()
authorBibo Mao <maobibo@loongson.cn>
Wed, 18 Jun 2025 02:30:55 +0000 (10:30 +0800)
committerBibo Mao <maobibo@loongson.cn>
Fri, 11 Jul 2025 06:47:15 +0000 (14:47 +0800)
There is small typo issue in function helper_csrwr_pwcl(), this patch
corrects this issue.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
target/loongarch/tcg/csr_helper.c

index 2942d7feb8145d5742b64a88c291e0f351c0161e..46d331ce8adf4dbaa3374a8a8466e26a00648681 100644 (file)
@@ -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;
 }