1. A method in a data processing system for generating coverage data during execution of code in the data processing system, the method comprising: responsive to executing an instruction in the code by a processor in the data processing system, determining whether an access indicator is associated with the instruction; and if the access indicator is associated with the instruction, changing, by the processor, a state of the access indicator when the instruction is executed, wherein coverage data is generated during execution of the code by the processor.