Search
lxdream.org :: lxdream/src/sh4/sh4core.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.h
changeset 945:787729653236
prev939:6f2302afeb89
next946:d41ee7994db7
author nkeynes
date Mon Jan 05 04:19:46 2009 +0000 (13 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change Move address space decls to mmu.h
Finally remove sh4_read_long and friends
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.h Sat Jan 03 03:30:26 2009 +0000
1.2 +++ b/src/sh4/sh4core.h Mon Jan 05 04:19:46 2009 +0000
1.3 @@ -1,10 +1,9 @@
1.4 /**
1.5 * $Id$
1.6 *
1.7 - * This file defines the internal functions exported/used by the SH4 core,
1.8 - * except for disassembly functions defined in sh4dasm.h
1.9 + * This file defines the internal functions used by the SH4 core,
1.10 *
1.11 - * Copyright (c) 2005 Nathan Keynes.
1.12 + * Copyright (c) 2005-2008 Nathan Keynes.
1.13 *
1.14 * This program is free software; you can redistribute it and/or modify
1.15 * it under the terms of the GNU General Public License as published by
1.16 @@ -50,11 +49,6 @@
1.17 };
1.18 extern struct sh4_icache_struct sh4_icache;
1.19
1.20 -extern struct mem_region_fn **sh4_address_space;
1.21 -extern struct mem_region_fn **sh4_user_address_space;
1.22 -extern struct mem_region_fn **storequeue_address_space;
1.23 -extern struct mem_region_fn **storequeue_user_address_space;
1.24 -
1.25 /**
1.26 * Test if a given address is contained in the current icache entry
1.27 */
1.28 @@ -205,22 +199,6 @@
1.29 */
1.30 gboolean FASTCALL mmu_update_icache( sh4vma_t addr );
1.31
1.32 -/**
1.33 - * Resolve a virtual address through the TLB for a read operation, returning
1.34 - * the resultant P4 or external address. If the resolution fails, the
1.35 - * appropriate MMU exception is raised and the value MMU_VMA_ERROR is returned.
1.36 - * @return An external address (0x00000000-0x1FFFFFFF), a P4 address
1.37 - * (0xE0000000 - 0xFFFFFFFF), or MMU_VMA_ERROR.
1.38 - */
1.39 -#ifdef HAVE_FRAME_ADDRESS
1.40 -sh4addr_t FASTCALL mmu_vma_to_phys_read( sh4vma_t addr, void *exc );
1.41 -sh4addr_t FASTCALL mmu_vma_to_phys_write( sh4vma_t addr, void *exc );
1.42 -#else
1.43 -sh4addr_t FASTCALL mmu_vma_to_phys_read( sh4vma_t addr );
1.44 -sh4addr_t FASTCALL mmu_vma_to_phys_write( sh4vma_t addr );
1.45 -#endif
1.46 -sh4addr_t FASTCALL mmu_vma_to_phys_disasm( sh4vma_t addr );
1.47 -
1.48 int64_t FASTCALL sh4_read_quad( sh4addr_t addr );
1.49 int32_t FASTCALL sh4_read_long( sh4addr_t addr );
1.50 int32_t FASTCALL sh4_read_word( sh4addr_t addr );
.