unicorn/qemu/target-i386
Ahmed Samy 02e6c14e12 x86: add MSR API via reg API (#755)
Writing / reading to model specific registers should be as easy as
calling a function, it's a bit stupid to write shell code and run them
just to write/read to a MSR, and even worse, you need more than just a
shellcode to read...

So, add a special register ID called UC_X86_REG_MSR, which should be
passed to uc_reg_write()/uc_reg_read() as the register ID, and then a
data structure which is uc_x86_msr (12 bytes), as the value (always), where:
	Byte	Value		Size
	0	MSR ID		4
	4       MSR val		8
2017-02-24 21:37:19 +08:00
..
arch_memory_mapping.c import 2015-08-21 15:04:50 +08:00
cc_helper.c x86: properly calculate EFLAGS when UC_HOOK_CODE is used. this should fix issue #246 2015-11-05 20:26:39 +08:00
cc_helper_template.h import 2015-08-21 15:04:50 +08:00
cpu-qom.h import 2015-08-21 15:04:50 +08:00
cpu.c more cleanup 2017-01-10 16:29:47 +08:00
cpu.h eflags patch 2016-08-09 19:38:44 -07:00
excp_helper.c import 2015-08-21 15:04:50 +08:00
fpu_helper.c removed ifdef for x64 in fpu saving 2015-08-30 19:39:46 -07:00
helper.c cleanup Monitor related code 2017-01-23 00:53:31 +08:00
helper.h rework code/block tracing 2016-01-22 18:42:27 -08:00
int_helper.c import 2015-08-21 15:04:50 +08:00
Makefile.objs import 2015-08-21 15:04:50 +08:00
mem_helper.c no more spinlock 2017-01-20 14:57:33 +08:00
misc_helper.c cleanup unused code 2016-11-19 23:48:23 +08:00
ops_sse.h import 2015-08-21 15:04:50 +08:00
ops_sse_header.h import 2015-08-21 15:04:50 +08:00
seg_helper.c fix x86 segment setup by updating cached segment registers on reg_write 2016-03-22 23:54:30 -07:00
shift_helper_template.h import 2015-08-21 15:04:50 +08:00
smm_helper.c import 2015-08-21 15:04:50 +08:00
svm.h import 2015-08-21 15:04:50 +08:00
svm_helper.c import 2015-08-21 15:04:50 +08:00
TODO import 2015-08-21 15:04:50 +08:00
topology.h import 2015-08-21 15:04:50 +08:00
translate.c Undo the disaster that was the patch to unicorn github issue #266 and fix it correctly. makes normal self-modifying code work. 2016-08-09 19:35:20 -07:00
unicorn.c x86: add MSR API via reg API (#755) 2017-02-24 21:37:19 +08:00
unicorn.h New feature: registers can be bulk saved/restored in an opaque blob 2016-08-20 04:14:07 -07:00