Debug instruction set allocation according to processor operating state
AssigneeArm Limited
InventorsMichael John Williams, Richard Roy Grisenthwaite, Simon John Craske
Life of this patent
Estimating the term…
Abstract
A data processing apparatus is provided comprising data processing circuitry and debug circuitry. The debug circuitry controls operation of the processing circuitry when operating in a debug mode. The data processing circuitry determines upon entry into a debug mode a current operating state of the data processing apparatus. The data processing circuitry allocates one of a plurality of instruction sets to be used as a debug instruction set depending upon the determined current operating state.
Claims34
A data processing apparatus comprising:
- data processing circuitry for performing data processing operations in response to execution of program instructions, said data processing circuitry being configured to operate in at least an operational mode and a debug mode;
- debug circuitry configured to provide an interface between said data processing circuitry and a debugger unit external to said data processing circuitry, said debug circuitry being configured to control operation of said data processing circuitry using debug instructions of a debug instruction set when said data processing circuitry is operating in said debug mode;
- wherein said data processing circuitry has a plurality of operating states including a first operating state and a second operating state, wherein in said first operating state the data processing circuitry uses virtual addresses having a greater number of bits than virtual addresses used in said second operating state, and in said first operating state said data processing circuitry is configured to execute instructions from a first instruction set, and in said second operating state said data processing circuitry is configured to support execution of instructions from a second instruction set and a third instruction set;
- and
- wherein said data processing circuitry is configured to determine, upon entry of said data processing circuitry into said debug mode, a current operating state of said data processing apparatus and to allocate said debug instruction set depending upon said current operating state, wherein said data processing circuitry is configured to allocate said first instruction set as said debug instruction set if said current operating state is said first operating state, and to allocate said second instruction set as said debug instruction set if said current operating state is said second operating state regardless of whether said data processing circuitry executed instructions from said second instruction set or said third instruction set prior to said entry into said debug mode.
A debug unit for performing debugging of operations of a data processing apparatus comprising processing circuitry, said data processing apparatus being capable of operating at least in a debug mode and an operational mode and in a plurality of different operating states, said debug unit comprising:
- reading circuitry for reading from a storage location within said data processing apparatus, a record of a current operating state specifying one of said plurality of operating states of said data processing apparatus, wherein said plurality of different operating states include a first operating state and a second operating state, and in said first operating state said data processing apparatus supports virtual addresses having a greater number of bits than virtual addresses supported in said second operating state, and in said first operating state said data processing apparatus supports execution of instructions from a first instruction set, and in said second operating state said data processing apparatus is configured to support execution of instructions from a second instruction set and a third instruction set;
- and
- deducing circuitry for deducing, depending upon the current operating state, a debug instruction set for use in generating debug instructions for supply to debug circuitry of said data processing apparatus to control operation of said processing circuitry for performing said debugging, wherein said deducing circuitry is configured to deduce that said first instruction set is said debug instruction set if said current operating state is said first operating state, and to deduce that said second instruction set is said debug instruction set if said current operating state is said second operating state regardless of whether said data processing apparatus executed instructions from said second instruction set or said third instruction set prior to said entry into said debug mode.
A debug method for performing debugging of operations of a data processing apparatus comprising data processing circuitry, said data processing apparatus being capable of operating at least in a debug mode and an operational mode and in a plurality of different operating states, said debug method comprising:
- reading from a storage location within said data processing apparatus, a record of a current operating state specifying one of said plurality of operating states of said data processing apparatus, wherein said plurality of different operating states include a first operating state and a second operating state, and in said first operating state said data processing apparatus uses virtual addresses having a greater number of bits than virtual addresses used in said second operating state, and in said first operating state said data processing apparatus supports execution of instructions from a first instruction set, and in said second operating state said data processing apparatus is configured to support execution of instructions from a second instruction set and a third instruction set;
- and
- deducing, depending upon the current operating state, a debug instruction set for use in generating debug instructions for supply to debug circuitry of said data processing apparatus to control operation of said data processing circuitry for performing said debugging, wherein said first instruction set is deduced to be said debug instruction set if said current operating state is said first operating state, and said second instruction set is deduced to be said debug instruction set if said current operating state is said second operating state regardless of whether said data processing apparatus executed instructions from said second instruction set or said third instruction set prior to said entry into said debug mode.
A data processing apparatus comprising:
- means for performing data processing operations in response to execution of program instructions, said means for performing data processing operations being configured to operate in at least an operational mode and a debug mode;
- means for debugging configured to provide an interface between said means for performing data processing and a means for debug analysis external to said data processing apparatus, said means for debugging being configured to control operation of said means for performing data processing using debug instructions of a debug instruction set when said means for performing data processing is operating in said debug mode;
- wherein said means for performing data processing operations has a plurality of operating states including a first operating state and a second operating state, wherein in said first operating state the means for performing data processing operations uses virtual addresses having a greater number of bits than virtual addresses used in said second operating state, and in said first operating state said means for performing data processing operations is configured to execute instructions from a first instruction set, and in said second operating state said means for performing data processing operations is configured to support execution of instructions from a second instruction set and a third instruction set;
- and
- wherein said means for performing data processing is configured to determine, upon entry of said means for performing data processing into said debug mode, a current operating state of said means for performing data processing and to allocate said debug instruction set depending upon said current operating state;
- and
- wherein said means for performing data processing is configured to allocate said first instruction set as said debug instruction set if said current operating state is said first operating state, and to allocate said second instruction set as said debug instruction set if said current operating state is said second operating state regardless of whether said means for performing data processing operations executed instructions from said second instruction set or said third instruction set prior to said entry into said debug mode.
A data processing method comprising:
- performing data processing operations in response to execution of program instructions on data processing circuitry being configured to operate in at least an operational mode and a debug mode, wherein said data processing circuitry has a plurality of operating states including a first operating state and a second operating state, wherein in said first operating state the data processing circuitry uses virtual addresses having a greater number of bits than virtual addresses used in said second operating state, and in said first operating state said data processing circuitry is configured to execute instructions from a first instruction set, and in said second operating state said data processing circuitry is configured to support execution of instructions from a second instruction set and a third instruction set;
- providing a debug interface between said data processing circuitry and a debugger unit external to said data processing circuitry, said debug interface being configured to control operation of said data processing circuitry using debug instructions of a debug instruction set when said data processing circuitry is operating in said debug mode;
- determining, upon entry of said data processing circuitry into said debug mode, a current operating state of said data processing circuitry and allocating said debug instruction set, depending upon said current operating state,
- wherein said first instruction set is allocated as said debug instruction set if said current operating state is said first operating state, and said second instruction set is allocated as said debug instruction set if said current operating state is said second operating state regardless of whether said data processing circuitry executed instructions from said second instruction set or said third instruction set prior to said entry into said debug mode.
Apparatus for performing debugging of operations of a data processing apparatus comprising data processing circuitry, said data processing apparatus being capable of operating at least in a debug mode and an operational mode and in a plurality of different operating states, said apparatus comprising:
- means for reading from a storage location within said data processing apparatus, a record of a current operating state specifying one of said plurality of operating states of said data processing apparatus, wherein said plurality of different operating states include a first operating state and a second operating state, and in said first operating state said data processing apparatus uses virtual addresses having a greater number of bits than virtual addresses used in said second operating state, and in said first operating state said data processing apparatus supports execution of instructions from a first instruction set, and in said second operating state said data processing apparatus is configured to support execution of instructions from a second instruction set and a third instruction set;
- and
- means for deducing, depending upon the current operating state, a debug instruction set for use in generating debug instructions for supply to debug circuitry of said data processing apparatus to control operation of said data processing circuitry for performing said debugging, wherein said means for deducing is configured to deduce that said first instruction set is said debug instruction set if said current operating state is said first operating state, and to deduce that said second instruction set is said debug instruction set if said current operating state is said second operating state regardless of whether said data processing apparatus executed instructions from said second instruction set or said third instruction set prior to said entry into said debug mode.
Dependencies are inferred from the claim text.