unicorn/qemu
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
..
default-configs cleanup qemu/default-configs/ 2017-01-19 14:52:30 +08:00
docs cleanup qemu docs 2017-01-18 15:23:40 +08:00
fpu Port patch from upstream to check for invalid long double encodings 2016-08-20 11:31:46 -07:00
hw cleanup Sparc unused code 2017-01-23 12:33:39 +08:00
include recover some ELF symbols for building on Arm, PPC, Sparc & S390. issue #752 2017-02-20 15:16:50 +08:00
qapi more cleanup 2017-01-10 16:29:47 +08:00
qobject clean all qobject json code 2017-01-09 16:09:53 +08:00
qom revert to use of g_free to make future qemu integrations easier (#695) 2016-12-21 22:28:36 +08:00
scripts del qemu/scripts/dump-guest-memory.py 2017-01-19 20:56:07 +08:00
target-arm arm: fix a warning 2017-02-23 20:32:09 +08:00
target-i386 x86: add MSR API via reg API (#755) 2017-02-24 21:37:19 +08:00
target-m68k m68k: fix a compilation warning 2017-02-23 20:34:17 +08:00
target-mips remove kvm stuffs 2017-01-20 01:03:59 +08:00
target-sparc cleanup Sparc unused code 2017-01-23 12:33:39 +08:00
tcg revert to use of g_free to make future qemu integrations easier (#695) 2016-12-21 22:28:36 +08:00
util cleanup qemu/util/qemu-timer-common.c 2017-01-21 14:53:33 +08:00
aarch64.h cleanup qemu/memory.c 2017-01-22 23:07:17 +08:00
accel.c revert to use of g_free to make future qemu integrations easier (#695) 2016-12-21 22:28:36 +08:00
arm.h cleanup qemu/memory.c 2017-01-22 23:07:17 +08:00
CODING_STYLE import 2015-08-21 15:04:50 +08:00
configure cleanup qemu/configure 2017-01-22 05:56:37 +08:00
COPYING import 2015-08-21 15:04:50 +08:00
COPYING.LIB import 2015-08-21 15:04:50 +08:00
cpu-exec.c no more spinlock 2017-01-20 14:57:33 +08:00
cpus.c cleanup more synchronization code 2017-01-09 14:05:39 +08:00
cputlb.c remove uc->cpus 2016-09-23 07:38:21 -07:00
exec.c we dont need to handle VGA & Migration memories 2017-01-20 17:03:39 +08:00
gen_all_header.sh fix file perms 2015-08-28 21:05:38 -07:00
glib_compat.c macro GPOINTER_TO_UINT 2017-01-02 01:00:11 +08:00
HACKING import 2015-08-21 15:04:50 +08:00
header_gen.py cleanup qemu/memory.c 2017-01-22 23:07:17 +08:00
ioport.c refactor to allow multiple hooks for one type 2016-01-22 18:41:43 -08:00
LICENSE import 2015-08-21 15:04:50 +08:00
m68k.h cleanup qemu/memory.c 2017-01-22 23:07:17 +08:00
Makefile cleanup qemu/default-configs/ 2017-01-19 14:52:30 +08:00
Makefile.objs cleanup qemu/Makefile.objs 2017-01-21 21:50:12 +08:00
Makefile.target import 2015-08-21 15:04:50 +08:00
memory_mapping.c revert to use of g_free to make future qemu integrations easier (#695) 2016-12-21 22:28:36 +08:00
memory.c cleanup qemu/memory.c 2017-01-22 23:07:17 +08:00
mips64.h cleanup qemu/memory.c 2017-01-22 23:07:17 +08:00
mips64el.h cleanup qemu/memory.c 2017-01-22 23:07:17 +08:00
mips.h cleanup qemu/memory.c 2017-01-22 23:07:17 +08:00
mipsel.h cleanup qemu/memory.c 2017-01-22 23:07:17 +08:00
powerpc.h cleanup qemu/memory.c 2017-01-22 23:07:17 +08:00
qapi-schema.json import 2015-08-21 15:04:50 +08:00
qemu-log.c import 2015-08-21 15:04:50 +08:00
qemu-timer.c timer is redundant 2017-01-20 16:46:58 +08:00
rules.mak import 2015-08-21 15:04:50 +08:00
softmmu_template.h add new hook type UC_HOOK_MEM_READ_AFTER, adapted from PR #399 by @farmdve. updated all bindings, except Ruby & Haskell 2016-10-22 11:19:55 +08:00
sparc64.h cleanup qemu/memory.c 2017-01-22 23:07:17 +08:00
sparc.h cleanup qemu/memory.c 2017-01-22 23:07:17 +08:00
tcg-runtime.c import 2015-08-21 15:04:50 +08:00
translate-all.c revert to use of g_free to make future qemu integrations easier (#695) 2016-12-21 22:28:36 +08:00
translate-all.h import 2015-08-21 15:04:50 +08:00
unicorn_common.h revert to use of g_free to make future qemu integrations easier (#695) 2016-12-21 22:28:36 +08:00
VERSION import 2015-08-21 15:04:50 +08:00
vl.c cleanup more synchronization code 2017-01-09 14:05:39 +08:00
vl.h import 2015-08-21 15:04:50 +08:00
x86_64.h cleanup qemu/memory.c 2017-01-22 23:07:17 +08:00