• Will Deacon's avatar
    ARM: hw_breakpoint: reserve one breakpoint for watchpoint stepping · c512de95
    Will Deacon authored
    The current hw_breakpoint code on ARM reserves 1 breakpoint for each
    watchpoint that is available. Since debug architectures prior to 7.1
    are restricted to 1 watchpoint anyway, only one breakpoint was ever
    reserved.
    
    This patch changes the reservation strategy so that a single breakpoint
    is reserved, regardless of the number of watchpoints. This is in
    preparation for multiple-watchpoint support on debug architectures
    from 7.1 onwards.
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    c512de95
hw_breakpoint.c 23.5 KB