aarch64: add exception syndrome (ESR) pseudo-register
Closes #838
This is not a real register, so it is confused. I rather having a new API to read/write CPU context.
Is that the sort of thing uc_query is for, and if so, would this be better off as a uc_query option?
but "query" is not supposed to write/change context, right?
the exception syndrome shouldn't be set by anything other than the emulator when it encounters an exception, which is why I didn't implement reg_write for it
Unless you're emulating something with more privileges and exception handlers I guess, but then you'd want to set the exception syndrome for a specific exception level (ESR_EL1, ESR_EL2, and ESR_EL3), and those are real registers (in the cp15 struct) so it makes sense to have those in uc_reg_read and uc_reg_write.
I don't have a way of telling what exception level an exception gets taken to though, so I wouldn't know which of those specific registers to read which is what I wanted a more general exception syndrome pseudo-register for.
Any update on this?
Closed due to inactivity.
But still link this to #1449 if I have more time or some one could assist me.