To get the base width of CPU capability from MISA register, what is the best way to read MISA register?
As per privileged spec, MISA CSR length should be base width wide. Also, its MXL field holds the MXLEN.
Now, ignoring 128 bits, if I assign MISA address to long long pointer (pointer to 64 bits) and read it as 64bits (assuming it is) and if the MISA CSR actually is just 32 bits wide will it create a fault?
Would be great to know how do you read the MISA register without knowing its width?