This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Windows C++ ARM CPU detection in user mode

I'm currently developing a core lib which provides detection of ARM CPU features on the Windows platform. On x86 CPUs it is done by the __cpuid intrinsic which allows to read specific information like the brand string and CPU features like supported instruction sets.

I would like to implement something similar for ARM CPUs and started to implement reading the MIDR_EL1 register which provides the architecture version. Unfortunately it seems to be not accessible in user mode.

Here is my current prototype

Is it possible to access this information in user mode in a windows application in another way? Or am I encoding the opcodes in the wrong way? Or is it currently not possible at all?

Thanks in advance for all helpful answers!

0