Claims
- 1. A system comprising:
a memory hierarchy to hold original code; a storage unit coupled to the memory hierarchy; a processor
to execute the original code from the memory hierarchy, after entering a probe break, to transfer the original code from the memory hierarchy to the storage unit and to transfer load test code to the memory hierarchy, and to execute the test code from the memory hierarchy, and after executing the test code, to reload the original code from the storage unit to the memory hierarchy and to resume executing the original code from the memory hierarchy.
- 2. The system of claim 1 where the memory hierarchy includes a cache whence the test code can execute during the probe break.
- 3. The system of claim 2 where the storage unit is a hard drive.
- 4. The system of claim 1 where the memory hierarchy includes a pipeline whence the test code executes during the probe break.
- 5. The system of claim 4 where the storage unit is a hard drive.
- 6. The system of claim 4 where the storage unit is virtual memory.
- 7. The system of claim 4 where the storage unit is dynamic memory.
- 8. The system of claim 1 where the processor initiates the probe mode breaks
- 9. The system of claim 1 where the break is an interrupt {Spec p4:13}
- 10. The system of claim 1 where the probe break asserts a mode pin in the processor.
- 11. A method for testing a processor, comprising:
executing original code from a memory hierarchy; upon entering a probe break,
transferring the original code from the memory hierarchy to a storage device, saving information representing a current state of the processor, loading a probe mode handler into the memory hierarchy; during the probe break,
executing the probe mode handler from the memory hierarchy, to test the processor; accessing the current state information by the probe mode handler; after the probe break, loading the original code from the storage device to the memory hierarchy, resuming execution of the original code from the memory hierarchy.
- 12. The method of claim 11 where the original code is executed from a cache, and where loading the probe mode handler comprises loading it into the cache.
- 13. The method of claim 12 where transferring the original code comprises loading it into a hard drive.
- 14. The method of claim 12 where transferring the original code comprises loading it into a virtual memory.
- 15. The method of claim 12 where transferring the original code comprises loading it into a dynamic memory.
- 16. The method of claim 11 where the original code is executed from a pipeline, and where loading the probe mode handler comprises loading it into the pipeline.
- 17. The method of claim 16 where transferring the original code comprises loading it into a hard drive.
- 18. The method of claim 16 where transferring the original code comprises loading it into a virtual memory.
- 19. The method of claim 16 where transferring the original code comprises loading it into a dynamic memory.
- 20. The method of claim 11 where the probe break is entered by a processor..
- 21. The method of claim 11 where the probe break is entered by an interrupt signal.
- 22. The method of claim 11 where the probe break is entered by asserting a mode pin in a processor.
- 23. The method of claim 11 where the probe break is entered by setting a breakpoint in an instruction
- 24. A method for testing a processor, comprising:
entering a probe break, saving information representing a current state of the processor, loading a probe mode handler into a memory hierarchy; executing the probe mode handler; while executing the probe mode handler during the probe break, accessing the saved current state information.
- 25. The method of claim 24 where the processor itself executes the probe mode handler and accesses the saved current state information.
- 26. The method of claim 24 where a test device external to the processor executes the probe mode handler and accesses the saved current state information.
- 27. The method of claim 26 where the external test device accesses the saved current state information through a port coupled to the processor.
- 28. The method of claim 24 further comprising unloading original code executing on the processor to a storage device.
- 29. The method of claim 28 where the original code is unloaded from an instruction cache.
Parent Case Info
[0001] This application is a continuation of U.S. application Ser. No. 09/460,269, filed on Dec. 13, 1999, and which is incorporated herein by reference.
Continuations (1)
|
Number |
Date |
Country |
Parent |
09460269 |
Dec 1999 |
US |
Child |
10426285 |
Apr 2003 |
US |