diff options
author | kaf24@localhost.localdomain <kaf24@localhost.localdomain> | 2006-12-03 17:15:48 +0000 |
---|---|---|
committer | kaf24@localhost.localdomain <kaf24@localhost.localdomain> | 2006-12-03 17:15:48 +0000 |
commit | df69bc855199b6a79e8dcf31ad48e9534d59d109 (patch) | |
tree | 1e2e23f97648ac602a3811148a3430072976797e /tools/tests | |
parent | 43bbe5bc9680630a963f44acb54fc0128d581384 (diff) | |
download | xen-df69bc855199b6a79e8dcf31ad48e9534d59d109.tar.gz xen-df69bc855199b6a79e8dcf31ad48e9534d59d109.tar.bz2 xen-df69bc855199b6a79e8dcf31ad48e9534d59d109.zip |
[XEN] Add 'insn_fetch' memory operation to the x86_emulator.
This can be used to perform correct access checks, provide appropriate
error codes when injecting faults, and to implement an
instruction-stream prefetch cache (which is included here for HVM PTE
update emulations).
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/tests')
-rw-r--r-- | tools/tests/test_x86_emulator.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/tests/test_x86_emulator.c b/tools/tests/test_x86_emulator.c index e22e342ce2..64797d3f81 100644 --- a/tools/tests/test_x86_emulator.c +++ b/tools/tests/test_x86_emulator.c @@ -88,7 +88,11 @@ static int cmpxchg8b( } static struct x86_emulate_ops emulops = { - read, write, cmpxchg, cmpxchg8b + .read = read, + .insn_fetch = read, + .write = write, + .cmpxchg = cmpxchg, + .cmpxchg8b = cmpxchg8b }; int main(int argc, char **argv) |