libretro, build fix for ngc/wii/wiiu

This commit is contained in:
kub 2021-04-12 20:02:11 +02:00
parent f6b8bcc701
commit 44245ef0ea
2 changed files with 5 additions and 4 deletions

View file

@ -468,7 +468,7 @@ static void rcache_free_tmp(int hr);
#include "../drc/emit_mips.c"
#elif defined(__riscv__) || defined(__riscv)
#include "../drc/emit_riscv.c"
#elif defined(__powerpc__) || defined(_M_PPC)
#elif defined(__powerpc__) || defined(__ppc__) || defined(_M_PPC)
#include "../drc/emit_ppc.c"
#elif defined(__i386__) || defined(_M_X86)
#include "../drc/emit_x86.c"
@ -3014,7 +3014,8 @@ static void emit_do_static_regs(int is_write, int tmpr)
// divide operation replacement functions, called by compiled code. Only the
// 32:16 cases and the 64:32 cases described in the SH2 prog man are replaced.
// This is surprisingly difficult since the SH2 division operation is generating// the result in the dividend during the operation, leaving some remainder-like
// This is surprisingly difficult since the SH2 division operation is generating
// the result in the dividend during the operation, leaving some remainder-like
// stuff in the bits unused for the result, and leaving the T and Q status bits
// in a state depending on the operands and the result. Q always reflects the
// last result bit generated (i.e. bit 0 of the result). For T:

View file

@ -16,9 +16,9 @@
#include <string.h>
#ifndef _WIN32
#ifndef NO_MMAP
#ifdef __SWITCH__
#if defined __SWITCH__
#include "switch/mman.h"
#else
#elif ! defined NO_MMAP
#include <sys/mman.h>
#endif
#endif