摘要 |
An instruction path coprocessor (IPC) (16) observes the value of a CPU program counter (14) of a CPU (10) to detect whether the IPC (16) should be active. The IPC(1 6) uses the value of the CPU program counter also to determine how the IPC should update its own IPC program counter. When a function is called, an exception or interrupt is handled or a jump to a target specified in a register is executed, an address is prepared that, when loaded into the CPU program counter, will cause the IPC to update its IPC program counter as required for the return from function call, exception or interrupt or jump. The prepared address is loaded into the CPU (10) program counter. The program counter (14) return address, for example, contains the virtual machine return address and a bit set to indicate that the address should be treated as a return from the jump to sub-routine
|