From: Gabe Black Date: Wed, 21 Oct 2020 00:37:20 +0000 (-0700) Subject: x86,kvm: Use the new workload event to trigger KVM system calls. X-Git-Tag: develop-gem5-snapshot~544 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=92abe28af49d9194f8c5a31891ebe04b5e1dcd21;p=gem5.git x86,kvm: Use the new workload event to trigger KVM system calls. While events are only used for SE mode for now, this moves to using the common mechanism and gets rid of the need for the system call specific pseudo inst. Change-Id: I53468103d7f046b85cc25cbff94b12dbc946f4f0 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34163 Reviewed-by: Jason Lowe-Power Reviewed-by: Gabe Black Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc index d4986c251..0644fa924 100644 --- a/src/arch/x86/process.cc +++ b/src/arch/x86/process.cc @@ -474,8 +474,8 @@ X86_64Process::initState() /* System call handler */ uint8_t syscallBlob[] = { - // mov %rax, (0xffffc90000005600) - 0x48, 0xa3, 0x00, 0x60, 0x00, + // mov %rax, (0xffffc90000007000) + 0x48, 0xa3, 0x00, 0x70, 0x00, 0x00, 0x00, 0xc9, 0xff, 0xff, // sysret 0x48, 0x0f, 0x07