This patch is based on the minimal extract of D128250.
What is implemented:
- Use the same register layout as Linux kernel and mock read/write for x0 register (the always zero register).
- Refactor some duplicate code, and delete unused register definitions.
Why is this only needed for PECOFF? (maybe it is the only one that lists them like this)