Porting simple code to M4 to A7

Hi all,

we are porting a firmware from a M4 to A7 micro (single core).

The code is very simple and checks if the micro is in debug mode.

if (CoreDebug->DHCSR & 1)

{

__BKPT (0);

}

Please, is there equivalent code?

Thanks!