Hello,
I am working on ARM-Cortex-M and i am trying to get the values currently stored in registers <Xt>. To test this, i want to write a random value to X3 and attempt a read.
As i understand, this should be possible by performing the following operations:
However doing this i do not see the expected data, is this process correct?
Do you mean Cortex-M? The instruction sequence you quoted is for AArch64, which is used on A-profile and some R-profile - but not M-profile.
Sorry its for Arm Cortex-A53, not M
Was MDCCSR_EL0.TXfull (which is an alias of EDSCR.TXfull) clear before you wrote DBGDTRTX_EL0? And did it become set after the write?
I suspect you might be missing some barriers. I'd expect a sequence along the lines of: