diff options
author | Greg Kurz <groug@kaod.org> | 2018-02-01 20:47:41 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-02-10 12:17:17 +1100 |
commit | fa86f59234919b479b7e8da6b0dc2dad894a5eac (patch) | |
tree | dc5b53d6fbd826fe7716cba2efe3f8d51ef047ec /hw | |
parent | c7b02d7d032d6022060e4b393827c963c93ce63f (diff) | |
download | qemu-fa86f59234919b479b7e8da6b0dc2dad894a5eac.zip qemu-fa86f59234919b479b7e8da6b0dc2dad894a5eac.tar.gz qemu-fa86f59234919b479b7e8da6b0dc2dad894a5eac.tar.bz2 |
spapr: add missing break in h_get_cpu_characteristics()
Detected by Coverity (CID 1385702). This fixes the recently added hypercall
to let guests properly apply Spectre and Meltdown workarounds.
Fixes: c59704b25473 "target/ppc/spapr: Add H-Call H_GET_CPU_CHARACTERISTICS"
Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/ppc/spapr_hcall.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index 4d0e6eb..596f583 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -1697,6 +1697,7 @@ static target_ulong h_get_cpu_characteristics(PowerPCCPU *cpu, switch (safe_indirect_branch) { case SPAPR_CAP_FIXED: characteristics |= H_CPU_CHAR_BCCTRL_SERIALISED; + break; default: /* broken */ assert(safe_indirect_branch == SPAPR_CAP_BROKEN); break; |