Skip to content

Commit

Permalink
metag: Fix typos
Browse files Browse the repository at this point in the history
Fix typos in metag architecture.

[[email protected]: squashed patches and fixed "detailed"]

Signed-off-by: Andrea Gelmini <[email protected]>
Signed-off-by: James Hogan <[email protected]>
  • Loading branch information
Gelma authored and James Hogan committed Jul 15, 2016
1 parent 92d21ac commit 986724d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion arch/metag/include/asm/metag_mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@
#define PERFCTRL_DCSTALL 11 /* Dcache+TLB o/p delayed (per-thread) */
#define PERFCTRL_ICSTALL 12 /* Icache+TLB o/p delayed (per-thread) */

#define PERFCTRL_INT 13 /* Internal core delailed events (see next) */
#define PERFCTRL_INT 13 /* Internal core detailed events (see next) */
#define PERFCTRL_EXT 15 /* External source in core periphery */
#endif /* METAC_2_1 */

Expand Down
2 changes: 1 addition & 1 deletion arch/metag/include/asm/metag_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
; is best to dump these registers immediately at the start of a routine
; using a MSETL or SETL instruction-
;
; MSETL [A0StP],D0Ar6,D0Ar4,D0Ar2; Only dump argments expected
; MSETL [A0StP],D0Ar6,D0Ar4,D0Ar2; Only dump arguments expected
;or SETL [A0StP+#8++],D0Ar2 ; Up to two 32-bit args expected
;
; For non-leaf routines it is always necessary to save and restore at least
Expand Down
2 changes: 1 addition & 1 deletion arch/metag/kernel/cachepart.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define SYSC_DCPART(n) (SYSC_DCPART0 + SYSC_xCPARTn_STRIDE * (n))
#define SYSC_ICPART(n) (SYSC_ICPART0 + SYSC_xCPARTn_STRIDE * (n))

#define CACHE_ASSOCIATIVITY 4 /* 4 way set-assosiative */
#define CACHE_ASSOCIATIVITY 4 /* 4 way set-associative */
#define ICACHE 0
#define DCACHE 1

Expand Down
4 changes: 2 additions & 2 deletions arch/metag/lib/divsi3.S
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $LIDMCQuick:
ADDCC D0Re0,D0Re0,#1 ! If yes result += 1
SUBCC D1Ar1,D1Ar1,D1Re0 ! and A -= Bu
ORS D0Ar4,D0Ar4,D0Ar4 ! Return neg result?
NEG D0Ar2,D0Re0 ! Calulate neg result
NEG D0Ar2,D0Re0 ! Calculate neg result
MOVMI D0Re0,D0Ar2 ! Yes: Take neg result
$LIDMCRet:
MOV PC,D1RtP
Expand Down Expand Up @@ -94,7 +94,7 @@ $LIDMCLoop:
LSR D1Re0, D1Re0, #1 ! Shift down B
BNZ $LIDMCLoop ! Was single bit in curbit lost?
ORS D0Ar4,D0Ar4,D0Ar4 ! Return neg result?
NEG D0Ar2,D0Re0 ! Calulate neg result
NEG D0Ar2,D0Re0 ! Calculate neg result
MOVMI D0Re0,D0Ar2 ! Yes: Take neg result
MOV PC,D1RtP
.size ___divsi3,.-___divsi3

0 comments on commit 986724d

Please sign in to comment.