Claims
- 1. A processor, comprising:
decode logic adapted to decode instructions from a first instruction set in a first mode and adapted to decode instructions from a second instruction set in a second mode, wherein the decode logic is adapted to switch temporarily or permanently from one mode to another; pre-decode logic coupled to the decode logic and adapted to operate in parallel with the decode logic; and wherein the first and second instruction sets each comprises an instruction that temporarily switches the decode logic from one mode to another for at least one subsequent instruction.
- 2. The processor of claim 1, wherein the first and second instruction sets each comprises a Java Impdep1 Bytecode that temporarily switches the decode logic from one mode to another.
- 3. The processor of claim 1, wherein the first instruction set comprises a first reserved Java Bytecode that temporarily switches the decode logic from the first mode to the second mode for at least one subsequent instruction, wherein the at least one subsequent instruction belongs to the second instruction set.
- 4. The processor of claim 1, wherein the second instruction set comprises a second reserved Java Bytecode that temporarily switches the decode logic from the second mode to the first mode for at least one subsequent instruction, wherein the at least one subsequent instruction belongs to the first instruction set.
- 5. The processor of claim 1, wherein the first instruction set comprises an instruction that permanently switches the decode logic from the first mode to the second mode.
- 6. The processor of claim 1, wherein the second instruction set comprises an instruction that permanently switches the decode logic from the first mode to the second mode.
- 7. The processor of claim 6, wherein the instruction that permanently switches the decode logic from the first mode to, the second mode succeeds a Java Impdep1 Bytecode.
- 8. The processor of claim 1, wherein the second instruction set comprises an instruction that permanently switches the decode logic from the second mode to the first mode.
- 9. A method of decoding instructions from a first and second instruction sets, comprising:
decoding instructions from the first instruction set in a first mode and decoding instructions from a second instruction set in the second mode; switching the decoding from one mode to another for one instruction; and switching the decoding permanently from one mode to another.
- 10. The method of claim 9, wherein the step of switching the decoding from one mode to another for the one instruction comprises detecting a temporary instruction that indicates the one instruction belongs to another instruction set.
- 11. The method of claim 10, wherein the step of switching the decoding from one mode to another comprises switching from the first mode and the second mode for the one instruction, wherein the one instruction belongs to the second instruction set.
- 12. The method of claim 10, wherein the step of switching the decoding from one mode to another comprises switching from the second mode and the first mode for the one instruction, wherein the one instruction belongs to the first instruction set.
- 13. The method of claim 10, wherein the first and second instruction sets each comprises the temporary instruction.
- 14. The method of claim 9, wherein the step of switching the decoding permanently from mode to another comprises detecting a temporary instruction that indicates the one instruction belongs to another instruction set.
- 15. The method of claim 9, wherein the step of switching the decoding permanently from one mode to another further comprises detecting a first permanent instruction that indicates a plurality of instructions belongs to another instruction set.
- 16. The method of claim 15, wherein the second instruction set comprises the first permanent instruction.
- 17. The method of claim 15, wherein the step of switching the decoding permanently from one mode to another comprises switching the decoding from the first mode to the second mode, wherein the plurality of instructions belong to the second instruction set.
- 18. The method of claim 9, wherein the step of switching the decoding permanently from one mode to another comprises detecting a second permanent instruction that indicates a plurality of instructions belongs to another instruction set.
- 19. The method of claim 18, wherein the second instruction set comprises the second permanent instruction.
- 20. The method of claim 18, wherein the step of switching the decoding permanently from one mode to another comprises switching the second mode to the first mode, wherein the plurality of instructions belong to the first instruction set.
- 21. A processor, comprising:
decode logic adapted to decode instructions from a first instruction set in a first mode and adapted to decode instructions from a second instruction set in a second mode; pre-decode logic coupled to the decode logic and adapted to pre-decode instructions in parallel with the decode logic wherein the pre-decode logic pre-decodes for a temporary instruction that switches the decode logic from one mode to another for a subsequent instruction; and wherein the first and second instruction sets each comprises the temporary instruction and wherein the second instruction set further comprises a first permanent instruction and a second permanent instruction.
- 22. The processor of claim 21, wherein the temporary instruction indicates that the subsequent instruction belongs to another instruction set and causes the decode logic to switch from one mode to another.
- 23. The processor of claim 22, wherein the decode logic temporarily switches from the first mode to the second mode, and wherein the subsequent instruction belongs to the second instruction set.
- 24. The processor of claim 22, wherein the decode logic temporarily switches from the second mode to the first mode, and wherein the subsequent instruction belongs to the first instruction set.
- 25. The processor of claim 21, wherein the subsequent instruction is the first permanent instruction that switches the decode logic permanently from the first the mode to the second mode.
- 26. The processor of claim 21, wherein the second permanent instruction permanently switches the decode logic from the second mode to the first mode.
- 27. A system, comprising:
main processor; and co-processor coupled to the main processor, the co-processor comprising: decode logic adapted to decode instructions from a first instruction set in a first mode and adapted to decode instructions from a second instruction set in a second mode; pre-decode logic coupled to the decode logic and adapted to pre-decode instructions in parallel with the decode logic, wherein the pre-decode logic pre-decodes for a temporary instruction; and wherein the first and second instruction sets each comprises the temporary instruction, and wherein the second instruction set further comprises a first permanent instruction and a second permanent instruction.
- 28. The system of claim 27, wherein the temporary instruction indicates a subsequent instruction belongs to another instruction set and causes the decode logic to switch from one mode to another.
- 29. The system of claim 28, wherein the subsequent instruction belongs to the second instruction set and the decode logic temporarily switches from the first mode to the second mode.
- 30. The system of claim 28, wherein the subsequent instruction belongs to the first instruction set and the decode logic temporarily switches from the second mode to the first mode.
- 31. The system of claim 28, wherein the subsequent instruction is the first permanent instruction, wherein the first permanent instruction indicates a plurality of instructions from the second instruction set is to follow and permanently switches the decode logic from the first mode to the second mode.
- 32. The system of claim 27, wherein the second permanent instruction indicates a plurality of instructions from the first instruction set is to follow and permanently switches the decode logic from the second mode to the first mode.
- 33. The system of claim 27, wherein the system comprises a cellular telephone.
Priority Claims (1)
Number |
Date |
Country |
Kind |
03291917.7 |
Jul 2003 |
EP |
|
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority to U.S. Provisional Application Serial No. 60/400,391 titled “JSM Protection,” filed Jul. 31, 2002, incorporated herein by reference. This application also claims priority to EPO Application No. 03291917.7, filed Jul. 30, 2003 and entitled “Processor That Accommodates Multiple Instruction Sets And Multiple Decode Modes,” incorporated herein by reference. This application also may contain subject matter that may relate to the following commonly assigned co-pending applications incorporated herein by reference: “System And Method To Automatically Stack And Unstack Java Local Variables,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35422 (1962-05401); “Memory Management Of Local Variables,” Ser. No. ______, filed Jul. 31; 2003, Attorney Docket No. TI-35423 (1962-05402); “Memory Management Of Local Variables Upon A Change Of Context,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35424 (1962-05403); “A Processor With A Split Stack,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35425(1962-05404); “Using IMPDEP2 For System Commands Related To Java Accelerator Hardware,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35426 (1962-05405); “Test With Immediate And Skip Processor Instruction,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35427 (1962-05406); “Test And Skip Processor Instruction Having At Least One Register Operand,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35248 (1962-05407); “Synchronizing Stack Storage,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35429 (1962-05408); “Methods And Apparatuses For Managing Memory,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35430 (1962-05409); “Write Back Policy For Memory,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35431 (1962-05410); “Methods And Apparatuses For Managing Memory,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35432 (1962-05411); “Mixed Stack-Based RISC Processor,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35433 (1962-05412); “System To Dispatch Several Instructions On Available Hardware Resources,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35444 (1962-05414); “Micro-Sequence Execution In A Processor,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35445 (1962-05415); “Program Counter Adjustment Based On The Detection Of An Instruction Prefix,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35452 (1962-05416); “Reformat Logic To Translate Between A Virtual Address And A Compressed Physical Address,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35460 (1962-05417); “Synchronization Of Processor States,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35461 (1962-05418); “Conditional Garbage Based On Monitoring To Improve Real Time Performance,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35485 (1962-05419); “Inter-Processor Control,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35486 (1962-05420); “Cache Coherency In A Multi-Processor System,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35637 (1962-05421); “Concurrent Task Execution In A Multi-Processor, Single Operating System Environment,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35638 (1962-05422); and “A Multi-Processor Computing System Having A Java Stack Machine And A RISC-Based Processor,” Ser. No. ______, filed Jul. 31, 2003, Attorney Docket No. TI-35710 (1962-05423).
Provisional Applications (1)
|
Number |
Date |
Country |
|
60400391 |
Jul 2002 |
US |