Skip to content
Commit 85a1de70 authored by Jean-Philippe Brucker's avatar Jean-Philippe Brucker
Browse files

fix(rmm): Report accurate breakpoint and watchpoint numbers



A Realm's ID_AA64DFR0_EL1 register is initialized with two breakpoints
and two watchpoints. These are the minimum values expected by the Arm
architecture, since ID_AA64DFR0_EL1 can only represent BP/WP counts
between 2 and 16. This limit is confirmed in DDI0487J.a D2.1.3 "About
debug exceptions", which states "The A-profile architecture provides
2-16 hardware breakpoints/watchpoints".

Write accurate breakpoints and watchpoints numbers in Feature Register
0, to avoid confusing a host that tries to create Realm parameters
compatible with both RMM and the architecture. Per the architecture,
values lower than two are invalid.

Signed-off-by: default avatarJean-Philippe Brucker <jean-philippe@linaro.org>
Change-Id: I34e2a08507eca164ade51f1c84a9b04e056474a8
parent 6871a439
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment