Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
CS 220 / ARM / ARM1176JZ-S Technical Reference Mmanual.pdf
Источник:
Скачиваний:
40
Добавлен:
16.04.2015
Размер:
4.47 Mб
Скачать

Programmer’s Model

2.3Processor operating states

The processor has these operating states:

ARM state

32-bit, word-aligned ARM instructions are executed in this state.

Thumb state 16-bit, halfword-aligned Thumb instructions.

Jazelle state

Variable length, byte-aligned Java instructions.

In Thumb state, the Program Counter (PC) uses bit 1 to select between alternate halfwords. In Jazelle state, all instruction fetches are in words.

Note

Transition between ARM and Thumb states does not affect the processor mode or the register contents. For details on entering and exiting Jazelle state see Jazelle V1 Architecture Reference Manual.

2.3.1Switching state

You can switch the operating state of the processor between:

ARM state and Thumb state using the BX and BLX instructions, and loads to the PC. The

ARM Architecture Reference Manual describes the switching state.

ARM state and Jazelle state using the BXJ instruction.

All exceptions are entered, handled, and exited in ARM state. If an exception occurs in Thumb state or Jazelle state, the processor reverts to ARM state. Exception return instructions restore the SPSR to the CPSR, that can also cause a transition back to Thumb state or Jazelle state.

2.3.2Interworking ARM and Thumb state

The processor enables you to mix ARM and Thumb code. For details see the chapter about interworking ARM and Thumb in the RealView Compilation Tools Developer Guide.

ARM DDI 0333H

Copyright © 2004-2009 ARM Limited. All rights reserved.

2-12

ID012410

Non-Confidential, Unrestricted Access

 

Соседние файлы в папке ARM