diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-10-03 15:00:47 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-12-22 15:02:07 +0100 |
commit | e62963bf48269f8942fe2f3c0c0f3e6778552207 (patch) | |
tree | e38f9d93c787cd8b2be797faa869a20f1e790682 /target/i386/hvf/hvf.c | |
parent | 715f396dfb6d35cf88392770bbc2ed89a6636b8d (diff) | |
download | qemu-e62963bf48269f8942fe2f3c0c0f3e6778552207.zip qemu-e62963bf48269f8942fe2f3c0c0f3e6778552207.tar.gz qemu-e62963bf48269f8942fe2f3c0c0f3e6778552207.tar.bz2 |
i386: hvf: abort on decoding error
Rather than unsupported situations, some VM_PANIC calls actually
are caused by internal errors. Convert them to just abort.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/hvf/hvf.c')
-rw-r--r-- | target/i386/hvf/hvf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/hvf/hvf.c b/target/i386/hvf/hvf.c index 3e5e9f9..8ceba73 100644 --- a/target/i386/hvf/hvf.c +++ b/target/i386/hvf/hvf.c @@ -766,7 +766,7 @@ int hvf_vcpu_exec(CPUState *cpu) env->hvf_emul->fetch_rip = rip; decode_instruction(env, &decode); - VM_PANIC_ON(ins_len != decode.len); + assert(ins_len == decode.len); exec_instruction(env, &decode); store_regs(cpu); |