set MDSCR_EL1.HDE,so that hlt instruction can be used to halt cpu
this is useful in that the hlt instruction can be inserted into
various places for JTAG debugger attach.
for example, following statement can halt the CPU for JTAG debugger:
asm volatile("hlt #0x1234")
Change-Id: I0ad0429ca05720573bae0e91a9da8ccd1019566b
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/494149
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
mov x0, #3 << 20
msr cpacr_el1, x0 // Enable FP/ASIMD
- msr mdscr_el1, xzr // Reset mdscr_el1
+ mov x0, #1 << 14 // Enable MDSCR_EL1.HDE
+ msr mdscr_el1, x0 // only set HDE in mdscr_el1
/*
* Memory region attributes for LPAE:
*