refactor: move tlbi macros to mmu header
For cleanliness, move tlbi / tlbi_reg macros from aarch64 mm.c to mmu.h.
Use tlbi macro in invalidate_vm_tlb.
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: I8b4ba6e11358d73095768ab5b9aa80c95569492a
diff --git a/src/arch/aarch64/hypervisor/handler.c b/src/arch/aarch64/hypervisor/handler.c
index 0d38365..f38c571 100644
--- a/src/arch/aarch64/hypervisor/handler.c
+++ b/src/arch/aarch64/hypervisor/handler.c
@@ -164,7 +164,7 @@
*/
isb();
- __asm__ volatile("tlbi vmalle1");
+ tlbi(vmalle1);
/*
* Ensure that no instructions are fetched for the VM until after the