From 274da6b24b93e98119de92f22fff24f79ba173ba Mon Sep 17 00:00:00 2001 From: bellard Date: Thu, 20 May 2004 21:56:27 +0000 Subject: 64 bit fix (Jocelyn Mayer) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@839 c046a42c-6fe2-441c-8c8c-71466251a162 --- exec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'exec.c') diff --git a/exec.c b/exec.c index 5357dcd..b484dc6 100644 --- a/exec.c +++ b/exec.c @@ -1221,7 +1221,7 @@ void tlb_flush(CPUState *env, int flush_global) #endif } -static inline void tlb_flush_entry(CPUTLBEntry *tlb_entry, uint32_t addr) +static inline void tlb_flush_entry(CPUTLBEntry *tlb_entry, target_ulong addr) { if (addr == (tlb_entry->address & (TARGET_PAGE_MASK | TLB_INVALID_MASK))) @@ -1789,7 +1789,7 @@ static void code_mem_writeb(target_phys_addr_t addr, uint32_t val) { unsigned long phys_addr; - phys_addr = addr - (long)phys_ram_base; + phys_addr = addr - (unsigned long)phys_ram_base; #if !defined(CONFIG_USER_ONLY) tb_invalidate_phys_page_fast(phys_addr, 1); #endif @@ -1801,7 +1801,7 @@ static void code_mem_writew(target_phys_addr_t addr, uint32_t val) { unsigned long phys_addr; - phys_addr = addr - (long)phys_ram_base; + phys_addr = addr - (unsigned long)phys_ram_base; #if !defined(CONFIG_USER_ONLY) tb_invalidate_phys_page_fast(phys_addr, 2); #endif @@ -1813,7 +1813,7 @@ static void code_mem_writel(target_phys_addr_t addr, uint32_t val) { unsigned long phys_addr; - phys_addr = addr - (long)phys_ram_base; + phys_addr = addr - (unsigned long)phys_ram_base; #if !defined(CONFIG_USER_ONLY) tb_invalidate_phys_page_fast(phys_addr, 4); #endif -- cgit v1.1