summaryrefslogtreecommitdiff
path: root/target/sh4
diff options
context:
space:
mode:
authorLichang Zhao <zhaolichang@huawei.com>2020-10-09 14:44:44 +0800
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-10-27 00:22:56 +0100
commit23b5d9fa099aa2fcd89869a4fc581a26c63edb1a (patch)
treea7689df9c3d0376b9fd3b309f2d53e5f5d718c6e /target/sh4
parent02b8e735c16d50e2108621a4af283989b38f508b (diff)
target/sh4: fix some comment spelling errors
There are many spelling errors in the comments of target/sh4. Use spellcheck to check the spelling errors, then fix them. Signed-off-by: zhaolichang <zhaolichang@huawei.com> Reviewed-by: David Edmondson <david.edmondson@oracle.com> Reviewed-by: Philippe Mathieu-Daude<f4bug@amsat.org> Message-Id: <20201009064449.2336-10-zhaolichang@huawei.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'target/sh4')
-rw-r--r--target/sh4/cpu.h2
-rw-r--r--target/sh4/op_helper.c2
-rw-r--r--target/sh4/translate.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/target/sh4/cpu.h b/target/sh4/cpu.h
index dbe58c7888..714e3b5641 100644
--- a/target/sh4/cpu.h
+++ b/target/sh4/cpu.h
@@ -160,7 +160,7 @@ typedef struct CPUSH4State {
uint32_t pteh; /* page table entry high register */
uint32_t ptel; /* page table entry low register */
uint32_t ptea; /* page table entry assistance register */
- uint32_t ttb; /* tranlation table base register */
+ uint32_t ttb; /* translation table base register */
uint32_t tea; /* TLB exception address register */
uint32_t tra; /* TRAPA exception register */
uint32_t expevt; /* exception event register */
diff --git a/target/sh4/op_helper.c b/target/sh4/op_helper.c
index fcd9ac7271..c0cbb95382 100644
--- a/target/sh4/op_helper.c
+++ b/target/sh4/op_helper.c
@@ -401,7 +401,7 @@ float32 helper_fsrra_FT(CPUSH4State *env, float32 t0)
/*
* Since this is supposed to be an approximation, an imprecision
* exception is required. One supposes this also follows the usual
- * IEEE rule that other exceptions take precidence.
+ * IEEE rule that other exceptions take precedence.
*/
if (get_float_exception_flags(&env->fp_status) == 0) {
set_float_exception_flags(float_flag_inexact, &env->fp_status);
diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index ec5b04889e..9312790623 100644
--- a/target/sh4/translate.c
+++ b/target/sh4/translate.c
@@ -1960,7 +1960,7 @@ static void decode_gusa(DisasContext *ctx, CPUSH4State *env)
switch (ctx->opcode & 0xf00f) {
case 0x6003: /* mov Rm,Rn */
/*
- * Here we want to recognize ld_dst being saved for later consumtion,
+ * Here we want to recognize ld_dst being saved for later consumption,
* or for another input register being copied so that ld_dst need not
* be clobbered during the operation.
*/