Fix 8 and 16 bit writes in codehandler (Source)
This commit is contained in:
parent
0f4c3a2ae1
commit
e2d126144e
|
@ -204,15 +204,15 @@ _write:
|
||||||
_write816:
|
_write816:
|
||||||
beq cr4,+32 #lf r5 = 1 then 16 bits write
|
beq cr4,+32 #lf r5 = 1 then 16 bits write
|
||||||
stbx r4,r9,r12 #write byte
|
stbx r4,r9,r12 #write byte
|
||||||
add r20, r9, r12
|
add r21, r9, r12
|
||||||
icbi r0, r20
|
icbi r0, r21
|
||||||
sync
|
sync
|
||||||
isync
|
isync
|
||||||
addi r9,r9,1
|
addi r9,r9,1
|
||||||
b +28
|
b +28
|
||||||
sthx r4,r9,r12 #write halfword
|
sthx r4,r9,r12 #write halfword
|
||||||
add r20, r9, r12 #Get Real Memory Offset
|
add r21, r9, r12 #Get Real Memory Offset
|
||||||
icbi r0, r20 #Invalidate Icache around real memory offset
|
icbi r0, r21 #Invalidate Icache around real memory offset
|
||||||
sync
|
sync
|
||||||
isync
|
isync
|
||||||
addi r9,r9,2
|
addi r9,r9,2
|
||||||
|
@ -238,8 +238,8 @@ _write_string: #endianess ?
|
||||||
blt- _skip_and_align #lf r9 < 0 then exit
|
blt- _skip_and_align #lf r9 < 0 then exit
|
||||||
lbzx r5,r9,r15
|
lbzx r5,r9,r15
|
||||||
stbx r5,r9,r12 #loop until all the data has been written
|
stbx r5,r9,r12 #loop until all the data has been written
|
||||||
add r20, r9, r12 #Get Real Memory Offset
|
add r21, r9, r12 #Get Real Memory Offset
|
||||||
icbi r0, r20 #Invalidate Icache around real memory offset
|
icbi r0, r21 #Invalidate Icache around real memory offset
|
||||||
sync
|
sync
|
||||||
isync
|
isync
|
||||||
b _stb
|
b _stb
|
||||||
|
@ -269,8 +269,8 @@ _loop_serial:
|
||||||
b +8
|
b +8
|
||||||
|
|
||||||
stwx r4,r9,r12 #write serial word (CT04,T>=2)
|
stwx r4,r9,r12 #write serial word (CT04,T>=2)
|
||||||
add r20, r9, r12 #Get Real Memory Offset
|
add r21, r9, r12 #Get Real Memory Offset
|
||||||
icbi r0, r20 #Invalidate Icache around real memory offset
|
icbi r0, r21 #Invalidate Icache around real memory offset
|
||||||
sync
|
sync
|
||||||
isync
|
isync
|
||||||
add r4,r4,r11 #value +=VVVVVVVV
|
add r4,r4,r11 #value +=VVVVVVVV
|
||||||
|
|
Loading…
Reference in New Issue