refactor(mm): use typedefs
* Add typedefs for memory modes and attrs
* Add typedef for page table levels
* Add typedef for the ptable ASID
* Rewrite `MM_MODE_` macros to use shifts instead of writing the
value manually.
Change-Id: I783825777b4897692d48287fc689026a04ecba50
Signed-off-by: Karl Meakin <karl.meakin@arm.com>
diff --git a/inc/hf/vcpu.h b/inc/hf/vcpu.h
index 7d16b6a..ffb1ec8 100644
--- a/inc/hf/vcpu.h
+++ b/inc/hf/vcpu.h
@@ -13,6 +13,7 @@
#include "hf/addr.h"
#include "hf/interrupt_desc.h"
#include "hf/list.h"
+#include "hf/mm.h"
#include "hf/spinlock.h"
#include "vmapi/hf/ffa.h"
@@ -110,7 +111,7 @@
ipaddr_t ipaddr;
vaddr_t vaddr;
vaddr_t pc;
- uint32_t mode;
+ mm_mode_t mode;
};
struct call_chain {