projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59f4d65
)
hw/ppc/spapr: Restrict part of PAGE_INIT hypercall to TCG
author
Philippe Mathieu-Daudé
<philmd@linaro.org>
Thu, 23 Jan 2025 16:28:39 +0000
(17:28 +0100)
committer
Philippe Mathieu-Daudé
<philmd@linaro.org>
Tue, 4 Mar 2025 13:45:34 +0000
(14:45 +0100)
Restrict the tb_flush() call to TCG. Assert we are using KVM or TCG.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Message-Id: <
20250127102620
.39159-3-philmd@linaro.org>
hw/ppc/spapr_hcall.c
patch
|
blob
|
history
diff --git
a/hw/ppc/spapr_hcall.c
b/hw/ppc/spapr_hcall.c
index f8ab76706306743b501c44a8f8ca85695050d22d..f987ff323f87cce591834ff194145568c632790a 100644
(file)
--- a/
hw/ppc/spapr_hcall.c
+++ b/
hw/ppc/spapr_hcall.c
@@
-299,8
+299,10
@@
static target_ulong h_page_init(PowerPCCPU *cpu, SpaprMachineState *spapr,
if (flags & (H_ICACHE_SYNCHRONIZE | H_ICACHE_INVALIDATE)) {
if (kvm_enabled()) {
kvmppc_icbi_range(cpu, pdst, len);
- } else {
+ } else
if (tcg_enabled())
{
tb_flush(CPU(cpu));
+ } else {
+ g_assert_not_reached();
}
}