wenlujon
wenlujon

Reputation: 693

in ARMv6, why the value of PC is current instruction plus 8?

what if the stages of pipeline is not 3, such as in ARM1156T2-S (also is ARMv6), it has 9 stages:

Fe1 Fe2 De Iss Fe3 Sh ALU Sat WBex

the PC is still address of current instruction plus 8?

Upvotes: 2

Views: 463

Answers (1)

Igor Skochinsky
Igor Skochinsky

Reputation: 25318

For compatibility.

MOV LR, PC
LDR PC, =myfunc

You don't want to break all the old code just because the pipeline was changed.

Upvotes: 2

Related Questions