aboutsummaryrefslogtreecommitdiff
path: root/src/core/arm/interpreter/mmu/tlb.h
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-15 23:39:06 -0400
committerbunnei <ericbunnie@gmail.com>2014-05-15 23:39:06 -0400
commit9a642caee770db2632f4daa842b10801b47ffbfc (patch)
tree5a1c63014d08d7200bc69c96549c49ba75553f2d /src/core/arm/interpreter/mmu/tlb.h
parent56846a4200994eebf3c0b5437f657729024cc7e7 (diff)
added missing skyeye mmu code
Diffstat (limited to 'src/core/arm/interpreter/mmu/tlb.h')
-rw-r--r--src/core/arm/interpreter/mmu/tlb.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/core/arm/interpreter/mmu/tlb.h b/src/core/arm/interpreter/mmu/tlb.h
index 938c01786..40856567b 100644
--- a/src/core/arm/interpreter/mmu/tlb.h
+++ b/src/core/arm/interpreter/mmu/tlb.h
@@ -63,14 +63,7 @@ typedef struct tlb_s
#define tlb_b_flag(tlb) \
((tlb)->perms & 0x4)
-#define tlb_va_to_pa(tlb, va) \
-(\
- {\
- ARMword mask = tlb_masks[tlb->mapping]; \
- (tlb->phys_addr & mask) | (va & ~mask);\
- }\
-)
-
+#define tlb_va_to_pa(tlb, va) ((tlb->phys_addr & tlb_masks[tlb->mapping]) | (va & ~tlb_masks[tlb->mapping]))
fault_t
check_access (ARMul_State * state, ARMword virt_addr, tlb_entry_t * tlb,
int read);