Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7e96642 authored by Kan-Ru Chen's avatar Kan-Ru Chen
Browse files

codeflinger: Correct misleading comment of STM instruction



According to the ARM Architecture Reference Manual, the comment on
STM instruction should be in reverse order.

Change-Id: I4af852a0478798ff7b02ab9c29c68e320ff78696
Signed-off-by: default avatarKan-Ru Chen <kanru@0xlab.org>
parent 5dfd90e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -334,7 +334,7 @@ void ARMAssembler::LDM(int cc, int dir,

void ARMAssembler::STM(int cc, int dir,
        int Rn, int W, uint32_t reg_list)
{   //                    FA EA FD ED      IB IA DB DA
{   //                    ED FD EA FA      IB IA DB DA
    const uint8_t P[8] = { 0, 1, 0, 1,      1, 0, 1, 0 };
    const uint8_t U[8] = { 0, 0, 1, 1,      1, 1, 0, 0 };
    *mPC++ = (cc<<28) | (4<<25) | (uint32_t(P[dir])<<24) |