summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4f48d9b)
void new_dynarec_init()
{
SysPrintf("Init new dynarec\n");
void new_dynarec_init()
{
SysPrintf("Init new dynarec\n");
+ out=(u_char *)BASE_ADDR;
- BASE_ADDR=mmap(BASE_ADDR, 1<<TARGET_SIZE_2,
+
+ if (mmap (out, 1<<TARGET_SIZE_2,
- -1, 0);
- if (out<=0) {
SysPrintf("mmap() failed: %s\n", strerror(errno));
}
SysPrintf("mmap() failed: %s\n", strerror(errno));
}
- out=(u_char *)BASE_ADDR;
- out=(u_char *)BASE_ADDR;
#if BASE_ADDR_FIXED
if (mmap (out, 1<<TARGET_SIZE_2,
PROT_READ | PROT_WRITE | PROT_EXEC,
#if BASE_ADDR_FIXED
if (mmap (out, 1<<TARGET_SIZE_2,
PROT_READ | PROT_WRITE | PROT_EXEC,
void new_dynarec_cleanup()
{
int n;
void new_dynarec_cleanup()
{
int n;
- #if BASE_ADDR_FIXED || defined(VITA)
if (munmap ((void *)BASE_ADDR, 1<<TARGET_SIZE_2) < 0) {SysPrintf("munmap() failed\n");}
#endif
for(n=0;n<4096;n++) ll_clear(jump_in+n);
if (munmap ((void *)BASE_ADDR, 1<<TARGET_SIZE_2) < 0) {SysPrintf("munmap() failed\n");}
#endif
for(n=0;n<4096;n++) ll_clear(jump_in+n);