arch,sim: Handle KVM SE page faults with workload events.
authorGabe Black <gabe.black@gmail.com>
Wed, 21 Oct 2020 00:37:25 +0000 (17:37 -0700)
committerGabe Black <gabe.black@gmail.com>
Thu, 29 Oct 2020 20:23:26 +0000 (20:23 +0000)
commit63d6017b63a42a47a5ec825e5f8efaf9d7e05672
tree85c5051a04d503964799f0095ecc1b5f75928262
parent40f14ff2b1f84046f00bb97c16ffdaa2bb65f696
arch,sim: Handle KVM SE page faults with workload events.

The event in KVM x86 SE mode plays double duty, triggering a system call
or a page fault depending on where it's called from (the system call
handler vs page fault handler).

This means we can eliminate the page fault gem5 op and the
pseudo_inst.hh switching header file.

This change touches a lot of things, but there wasn't really a good
place to split it up which still made sense and was consistent and
functional.

Change-Id: Ic414829917bcbd421893aa6c89d78273e4926b78
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34165
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Alexandru Duțu <alexandru.dutu@amd.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
20 files changed:
include/gem5/asm/generic/m5ops.h
include/gem5/m5ops.h
src/arch/SConscript
src/arch/arm/pseudo_inst.hh [deleted file]
src/arch/generic/SConscript
src/arch/generic/pseudo_inst.cc [deleted file]
src/arch/generic/pseudo_inst.hh [deleted file]
src/arch/mips/pseudo_inst.hh [deleted file]
src/arch/power/pseudo_inst.hh [deleted file]
src/arch/riscv/pseudo_inst.hh [deleted file]
src/arch/sparc/pseudo_inst.hh [deleted file]
src/arch/x86/SConscript
src/arch/x86/fs_workload.hh
src/arch/x86/linux/se_workload.cc
src/arch/x86/linux/se_workload.hh
src/arch/x86/process.cc
src/arch/x86/pseudo_inst.cc [deleted file]
src/arch/x86/pseudo_inst.hh [deleted file]
src/arch/x86/se_workload.hh [new file with mode: 0644]
src/sim/pseudo_inst.hh