mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
libretro: satisfy vita's dynarec needs in a cleaner way
This commit is contained in:
parent
28a5b39232
commit
df9251536d
5 changed files with 39 additions and 12 deletions
|
@ -10,14 +10,20 @@
|
|||
#include <pico/pico_int.h>
|
||||
#include "cmn.h"
|
||||
|
||||
u8 ALIGNED(4096) tcache[DRC_TCACHE_SIZE];
|
||||
|
||||
u8 ALIGNED(4096) tcache_default[DRC_TCACHE_SIZE];
|
||||
u8 *tcache;
|
||||
|
||||
void drc_cmn_init(void)
|
||||
{
|
||||
int ret = plat_mem_set_exec(tcache, sizeof(tcache));
|
||||
int ret;
|
||||
|
||||
tcache = plat_mem_get_for_drc(DRC_TCACHE_SIZE);
|
||||
if (tcache == NULL)
|
||||
tcache = tcache_default;
|
||||
|
||||
ret = plat_mem_set_exec(tcache, DRC_TCACHE_SIZE);
|
||||
elprintf(EL_STATUS, "drc_cmn_init: %p, %zd bytes: %d",
|
||||
tcache, sizeof(tcache), ret);
|
||||
tcache, DRC_TCACHE_SIZE, ret);
|
||||
|
||||
#ifdef __arm__
|
||||
if (PicoOpt & POPT_EN_DRC)
|
||||
|
|
|
@ -5,7 +5,7 @@ typedef unsigned int u32;
|
|||
|
||||
#define DRC_TCACHE_SIZE (2*1024*1024)
|
||||
|
||||
extern u8 tcache[DRC_TCACHE_SIZE];
|
||||
extern u8 *tcache;
|
||||
|
||||
void drc_cmn_init(void);
|
||||
void drc_cmn_cleanup(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue