summaryrefslogtreecommitdiffstats
path: root/target/i386/hvf/x86_emu.c
diff options
context:
space:
mode:
authorPaolo Bonzini2017-10-03 15:00:47 +0200
committerPaolo Bonzini2017-12-22 15:02:07 +0100
commite62963bf48269f8942fe2f3c0c0f3e6778552207 (patch)
treee38f9d93c787cd8b2be797faa869a20f1e790682 /target/i386/hvf/x86_emu.c
parenti386: hvf: remove ZERO_INIT macro (diff)
downloadqemu-e62963bf48269f8942fe2f3c0c0f3e6778552207.tar.gz
qemu-e62963bf48269f8942fe2f3c0c0f3e6778552207.tar.xz
qemu-e62963bf48269f8942fe2f3c0c0f3e6778552207.zip
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/x86_emu.c')
-rw-r--r--target/i386/hvf/x86_emu.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/target/i386/hvf/x86_emu.c b/target/i386/hvf/x86_emu.c
index ff146fa81b..5ecabc4230 100644
--- a/target/i386/hvf/x86_emu.c
+++ b/target/i386/hvf/x86_emu.c
@@ -146,7 +146,7 @@ addr_t read_reg(CPUX86State *env, int reg, int size)
case 8:
return env->hvf_emul->regs[reg].rrx;
default:
- VM_PANIC_ON("read_reg size");
+ abort();
}
return 0;
}
@@ -167,7 +167,7 @@ void write_reg(CPUX86State *env, int reg, addr_t val, int size)
env->hvf_emul->regs[reg].rrx = val;
break;
default:
- VM_PANIC_ON("write_reg size");
+ abort();
}
}
@@ -189,8 +189,7 @@ addr_t read_val_from_reg(addr_t reg_ptr, int size)
val = *(uint64_t *)reg_ptr;
break;
default:
- VM_PANIC_ON_EX(1, "read_val: Unknown size %d\n", size);
- break;
+ abort();
}
return val;
}
@@ -211,8 +210,7 @@ void write_val_to_reg(addr_t reg_ptr, addr_t val, int size)
*(uint64_t *)reg_ptr = val;
break;
default:
- VM_PANIC("write_val: Unknown size\n");
- break;
+ abort();
}
}