Commit a5752ceb authored by YenHaoChen's avatar YenHaoChen
Browse files

Fix priority of mcontrol trigger execute address before

The spec defines the mcontrol execute address has a higher priority over
page fault (Debug spec, Table 5.2). Thus, the trigger checking should be
before the translation.

The previous implementation checks the trigger after the translation,
resulting in incorrect priority. For instance, when page fault and
trigger occur on the same instruction, the previous implementation will
choose to raise the page fault, which contradicts the priority
requirement.

This commit adds an address-only trigger checking before the
translation.  The trigger will fire on the instruction instead of the
page fault in the above case.
parent b724db52
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment