arch-x86: Change guest ABI for x86 pseudo insts
Change the guest ABI for x86 pseudo instructions to explictly write rax.
This is required because for some reason, the KVM CPU overwrites rax
after the KVM MMIO sets the value.
Note: This is hacky. It will only work for the current implementations
of x86 m5 ops which have their return value in RAX. A comment is added
to the m5ops file to make this clear.
Signed-off-by: Jason Lowe-Power <firstname.lastname@example.org>
Tested-by: kokoro <email@example.com>
Reviewed-by: Gabe Black <firstname.lastname@example.org>
3 files changed