mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
32x: interpreter-wrap drc works (demos only). SVP drc refactoring.
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@812 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
98da48e418
commit
679af8a3f4
19 changed files with 1505 additions and 46 deletions
|
@ -5,12 +5,7 @@
|
|||
|
||||
#include "cmn.h"
|
||||
|
||||
#ifndef ARM
|
||||
unsigned int tcache[SSP_TCACHE_SIZE/4];
|
||||
unsigned int *ssp_block_table[0x5090/2];
|
||||
unsigned int *ssp_block_table_iram[15][0x800/2];
|
||||
char ssp_align[SSP_BLOCKTAB_ALIGN_SIZE];
|
||||
#endif
|
||||
u32 tcache[DRC_TCACHE_SIZE/4];
|
||||
|
||||
|
||||
void drc_cmn_init(void)
|
||||
|
@ -18,7 +13,7 @@ void drc_cmn_init(void)
|
|||
#if defined(__linux__) && defined(ARM)
|
||||
void *tmp;
|
||||
|
||||
tmp = mmap(tcache, SSP_DRC_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_SHARED|MAP_ANONYMOUS, -1, 0);
|
||||
tmp = mmap(tcache, DRC_TCACHE_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_SHARED|MAP_ANONYMOUS, -1, 0);
|
||||
printf("mmap tcache: %p, asked %p\n", tmp, tcache);
|
||||
#endif
|
||||
|
||||
|
@ -29,7 +24,7 @@ void drc_cmn_cleanup(void)
|
|||
{
|
||||
#if defined(__linux__) && defined(ARM)
|
||||
int ret;
|
||||
ret = munmap(tcache, SSP_DRC_SIZE);
|
||||
ret = munmap(tcache, DRC_TCACHE_SIZE);
|
||||
printf("munmap tcache: %i\n", ret);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue