Merged with new-trap-decoding branch at rev a792088a3f04 (branch closed).
[cacao.git] / src / vm / jit / powerpc64 / patcher.c
index 9e1799c2296270d680a9243dd4d27786a04991a6..f5875a04ebf91b4addcb754f0353a36635d5762c 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "vm/jit/powerpc64/md.h"
 
-#include "mm/memory.h"
+#include "mm/memory.hpp"
 
 #include "native/native.hpp"
 
@@ -66,22 +66,6 @@ void patcher_patch_code(patchref_t *pr)
 }
 
 
-/**
- * Check if the trap instruction at the given PC is valid.
- *
- * @param pc Program counter.
- *
- * @return true if valid, false otherwise.
- */
-bool patcher_is_valid_trap_instruction_at(void* pc)
-{
-       uint32_t mcode = *((uint32_t*) pc);
-
-       // Check for the undefined instruction we use.
-       return (mcode == 0x00000000);
-}
-
-
 /* patcher_get_putstatic *******************************************************
 
    Machine code: