arch-x86: Change guest ABI for x86 pseudo insts v19.0.0.0
authorJason Lowe-Power <jason@lowepower.com>
Fri, 21 Feb 2020 02:20:45 +0000 (18:20 -0800)
committerJason Lowe-Power <jason@lowepower.com>
Tue, 25 Feb 2020 16:19:49 +0000 (16:19 +0000)
commit9fc9c67b4242c03f165951775be5cd0812f2a705
tree5aa0aaa56f7ceb9c621fb73248bda8a343a4af4c
parent2a2579140d4edb8e5d04578f5892a452950c9600
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.

Change-Id: I9466bf050b26db3650cfe3d23008e0f77fda8bc0
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25664
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
src/arch/x86/mmapped_ipr.hh
src/arch/x86/pseudo_inst_abi.hh [new file with mode: 0644]
util/m5/m5op_x86.S