Implementation of variable length instruction encoding using alias addressing
First Claim
1. A method for operating a digital processor by accessing a current instruction, the method comprising:
- determining if a virtual address associated with the current instruction belongs to first or second alias space wherein;
a first operating mode is associated with the first alias space and a second operating mode is associated with the second alias space; and
at least one virtual address in the first alias space and at least one virtual address in the second alias space correspond to a single physical-memory address; and
setting the processor in the first or second operating mode according to alias space to which the virtual address associated with the current instruction belongs.
1 Assignment
0 Petitions
Accused Products
Abstract
A digital processor and method of operation utilize an alias address space to implement variable length instruction encoding on a legacy processor. The method includes storing instructions of a code sequence in memory; generating instruction addresses of the code sequence; automatically switching between a first operating mode and a second operating mode in response to a transition in instruction addresses between a first address space and a second address space, wherein addresses in the first and second address spaces access a common memory space; in the first operating mode, accessing instructions in the first address space; in the second operating mode, accessing instructions in the second address space; and executing the accessed instructions of the code sequence. Instructions of different instruction lengths may be utilized in the first and second operating modes.
36 Citations
27 Claims
-
1. A method for operating a digital processor by accessing a current instruction, the method comprising:
-
determining if a virtual address associated with the current instruction belongs to first or second alias space wherein; a first operating mode is associated with the first alias space and a second operating mode is associated with the second alias space; and at least one virtual address in the first alias space and at least one virtual address in the second alias space correspond to a single physical-memory address; and setting the processor in the first or second operating mode according to alias space to which the virtual address associated with the current instruction belongs. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. Digital processor apparatus to execute instructions, the apparatus comprising:
a program sequencer configured to generate virtual instruction addresses and to automatically switch between a first operating mode and a second operating mode in response to a transition in virtual instruction addresses between a first alias space and a second alias space, wherein at least one virtual address in the first alias space and at least one virtual address in the second alias space correspond to a single physical-memory address. - View Dependent Claims (16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27)
Specification