qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 09/11] include/exec: added functions to the stubs in exec-all.h


From: Bruno Larsen (billionai)
Subject: [PATCH 09/11] include/exec: added functions to the stubs in exec-all.h
Date: Wed, 12 May 2021 11:08:11 -0300

From: "Lucas Mateus Castro (alqotel)" <lucas.araujo@eldorado.org.br>

Added tlb_set_page and tlb_set_page_with_attrs to the
stubbed functions in exec-all.h  as it is needed
in some functions when compiling without TCG

Signed-off-by: Lucas Mateus Castro (alqotel) <lucas.araujo@eldorado.org.br>
---
 include/exec/exec-all.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h
index 6b036cae8f..f287c88282 100644
--- a/include/exec/exec-all.h
+++ b/include/exec/exec-all.h
@@ -365,6 +365,16 @@ tlb_flush_page_bits_by_mmuidx_all_cpus_synced(CPUState 
*cpu, target_ulong addr,
                                               uint16_t idxmap, unsigned bits)
 {
 }
+static inline void tlb_set_page_with_attrs(CPUState *cpu, target_ulong vaddr,
+                             hwaddr paddr, MemTxAttrs attrs,
+                             int prot, int mmu_idx, target_ulong size)
+{
+}
+static inline void tlb_set_page(CPUState *cpu, target_ulong vaddr,
+                  hwaddr paddr, int prot,
+                  int mmu_idx, target_ulong size)
+{
+}
 #endif
 /**
  * probe_access:
-- 
2.17.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]