From cef4049bf58f90ba715a001366aa5340314b4004 Mon Sep 17 00:00:00 2001 From: TomW Date: Thu, 4 Feb 2016 20:35:43 +0000 Subject: [PATCH] Added missing return types to get_phys() functions. Patch from John Elliott. --- src/mem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mem.h b/src/mem.h index 59a681a..631197a 100644 --- a/src/mem.h +++ b/src/mem.h @@ -119,7 +119,7 @@ extern page_t **page_lookup; uint32_t mmutranslate_noabrt(uint32_t addr, int rw); extern uint32_t get_phys_virt,get_phys_phys; -static inline get_phys(uint32_t addr) +static inline uint32_t get_phys(uint32_t addr) { if (!((addr ^ get_phys_virt) & ~0xfff)) return get_phys_phys | (addr & 0xfff); @@ -137,7 +137,7 @@ static inline get_phys(uint32_t addr) // return mmutranslatereal(addr, 0) & rammask; } -static inline get_phys_noabrt(uint32_t addr) +static inline uint32_t get_phys_noabrt(uint32_t addr) { if (!(cr0 >> 31)) return addr & rammask;