From: kub Date: Wed, 13 Jan 2021 22:14:00 +0000 (+0100) Subject: sh2 drc, fix for MIPS EABI X-Git-Tag: v2.00~621 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dee74458bd2279c0171cbc42c0ccc5fde3feb05;p=picodrive.git sh2 drc, fix for MIPS EABI --- diff --git a/cpu/sh2/compiler.h b/cpu/sh2/compiler.h index bc128192..0f4148f4 100644 --- a/cpu/sh2/compiler.h +++ b/cpu/sh2/compiler.h @@ -43,7 +43,7 @@ u16 scan_block(u32 base_pc, int is_slave, u8 *op_flags, u32 *end_pc, #define DRC_REG_LL (__ILP32__ || _WIN32) #elif defined(__mips__) #define DRC_SR_REG "s6" -#define DRC_REG_LL (_MIPS_SIM == _ABIN32) +#define DRC_REG_LL (_MIPS_SZPTR > _MIPS_SZLONG) // (_MIPS_SIM == _ABIN32) #elif defined(__riscv__) || defined(__riscv) #define DRC_SR_REG "s11" #define DRC_REG_LL 0 // no ABI for (__ILP32__ && __riscv_xlen != 32)