diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-08-17 03:33:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-17 03:33:23 +0800 |
| commit | 01cea374a647dbf44c1da743319c4d0b3f313302 (patch) | |
| tree | 58dc216ae520d1985256c1bcca6e1b9bab2fd9bf /docs/codehandler.s | |
| parent | a53b01360c367f533e800189e067f102137670f5 (diff) | |
| parent | e2d126144e72385ea182d0bd7e1183a6786d001d (diff) | |
Merge pull request #5907 from gamemasterplc/master
Fix 8 and 16 bit writes in codehandler
Diffstat (limited to 'docs/codehandler.s')
| -rw-r--r-- | docs/codehandler.s | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/codehandler.s b/docs/codehandler.s index 011ff21f34..9536b0d064 100644 --- a/docs/codehandler.s +++ b/docs/codehandler.s @@ -204,15 +204,15 @@ _write: _write816:
beq cr4,+32 #lf r5 = 1 then 16 bits write
stbx r4,r9,r12 #write byte
- add r20, r9, r12
- icbi r0, r20
+ add r21, r9, r12
+ icbi r0, r21
sync
isync
addi r9,r9,1
b +28
sthx r4,r9,r12 #write halfword
- add r20, r9, r12 #Get Real Memory Offset
- icbi r0, r20 #Invalidate Icache around real memory offset
+ add r21, r9, r12 #Get Real Memory Offset
+ icbi r0, r21 #Invalidate Icache around real memory offset
sync
isync
addi r9,r9,2
@@ -238,8 +238,8 @@ _write_string: #endianess ? blt- _skip_and_align #lf r9 < 0 then exit
lbzx r5,r9,r15
stbx r5,r9,r12 #loop until all the data has been written
- add r20, r9, r12 #Get Real Memory Offset
- icbi r0, r20 #Invalidate Icache around real memory offset
+ add r21, r9, r12 #Get Real Memory Offset
+ icbi r0, r21 #Invalidate Icache around real memory offset
sync
isync
b _stb
@@ -269,8 +269,8 @@ _loop_serial: b +8
stwx r4,r9,r12 #write serial word (CT04,T>=2)
- add r20, r9, r12 #Get Real Memory Offset
- icbi r0, r20 #Invalidate Icache around real memory offset
+ add r21, r9, r12 #Get Real Memory Offset
+ icbi r0, r21 #Invalidate Icache around real memory offset
sync
isync
add r4,r4,r11 #value +=VVVVVVVV
|
