Some aspects provide determination of a debug event, selection of a
controller context based on the determined debug event, and execution of
the selected controller context. The debug event may be associated with a
microprocessor, and the controller context may be selected based on
predetermined associations between a plurality of debug events and a
plurality of controller contexts.