×

Apparatus and method for hardware initiation of emulated instructions

  • US 10,496,461 B2
  • Filed: 06/15/2011
  • Issued: 12/03/2019
  • Est. Priority Date: 06/15/2011
  • Status: Active Grant
First Claim
Patent Images

1. A method of emulating an instruction, comprising:

  • fetching an instruction with a processor;

    decoding the fetched instruction with the processor;

    determining, prior to execution of the decoded instruction, whether the decoded instruction is executable by a hardware resource within or coupled to the processor;

    when it is determined that the decoded instruction is executable by the hardware resource, identifying, with the processor, prior to execution of the decoded instruction, a fault instruction by determining whether the decoded instruction is allowed in an execution mode, and executing the decoded instruction when the decoded instruction is allowed in the execution mode, and, upon identifying the fault instruction when the decoded instruction is not allowed in the execution mode;

    saving the fault instruction in a fault register on the processor,associating the fault instruction in the fault register on the processor with a software emulated operation,signaling an exception and invoking a software emulator in memory connected to the processor via a bus and executable on the processor in response to the exception,reading, using the software emulator, the fault instruction in the fault register on the processor,decoding, using the software emulator, the read fault instruction,determining, using the software emulator, whether emulation of the decoded fault instruction stored in the fault register is possible,executing, using the software emulator, the software emulated operation when it is determined that emulation of the fault instruction stored in the fault register is possible.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×