On 5/12/21 9:08 AM, Bruno Larsen (billionai) wrote:
+++ b/target/ppc/tcg-stub.c
@@ -0,0 +1,33 @@
+
+#include "qemu/osdep.h"

All files get copyright boilerplate.

+#include "exec/hwaddr.h"
+#include "cpu.h"
+#include "hw/ppc/spapr.h"
+
+hwaddr ppc_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
+{
+    return 0;
+}

This is used by gdbstub.

If there's a way for kvm to convert a virtual address to a physical address using the hardware, then use that. I suspect there is not.

Otherwise, you have to keep all of the mmu page table walking stuff for kvm as well as tcg. Which probably means that all of the other stuff that you're stubbing out is used or usable as well.


r~

Reply via email to