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:

committed by
Avi Kivity

parent
fd0a0d8208
commit
0225fb509d
@@ -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;
|
||||
|
Reference in New Issue
Block a user