KVM: x86 emulator: constify emulate_ops

We never change emulate_ops[] at runtime so it should be r/o.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
Mathias Krause
2012-08-30 01:30:16 +02:00
committed by Avi Kivity
parent fd0a0d8208
commit 0225fb509d
3 changed files with 13 additions and 13 deletions

View File

@@ -250,7 +250,7 @@ struct read_cache {
};
struct x86_emulate_ctxt {
struct x86_emulate_ops *ops;
const struct x86_emulate_ops *ops;
/* Register state before/after emulation. */
unsigned long eflags;