env->dregs[3],
env->dregs[4],
env->dregs[5],
- env->dregs[6]);
+ env->aregs[0]);
}
break;
case EXCP_INTERRUPT:
#endif
#ifdef TARGET_NR_mmap2
case TARGET_NR_mmap2:
-#if defined(TARGET_SPARC) || defined(TARGET_MIPS)
+#ifndef MMAP_SHIFT
#define MMAP_SHIFT 12
-#else
-#define MMAP_SHIFT TARGET_PAGE_BITS
#endif
ret = get_errno(target_mmap(arg1, arg2, arg3,
target_to_host_bitmask(arg4, mmap_flags_tbl),
/* CRIS uses 8k pages. */
#define TARGET_PAGE_BITS 13
+#define MMAP_SHIFT TARGET_PAGE_BITS
#define CPUState CPUCRISState
#define cpu_init cpu_cris_init