Skip to content

Commit

Permalink
Merge branch 'master' into libretro
Browse files Browse the repository at this point in the history
  • Loading branch information
notaz committed Dec 23, 2024
2 parents c387c01 + 5082c6c commit 7625ec4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions libpcsxcore/cdrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1304,16 +1304,6 @@ void cdrInterrupt(void) {
setIrq(IrqStat, Cmd);
}

#ifdef HAVE_ARMV7
#define ssat32_to_16(v) \
asm("ssat %0,#16,%1" : "=r" (v) : "r" (v))
#else
#define ssat32_to_16(v) do { \
if (v < -32768) v = -32768; \
else if (v > 32767) v = 32767; \
} while (0)
#endif

static void cdrPrepCdda(s16 *buf, int samples)
{
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
Expand All @@ -1332,6 +1322,8 @@ static void cdrReadInterruptSetResult(unsigned char result)
cdr.SetSectorPlay[0], cdr.SetSectorPlay[1], cdr.SetSectorPlay[2],
cdr.CmdInProgress, cdr.IrqStat);
cdr.Irq1Pending = result;
// F1 2000 timing hack :(
psxRegs.intCycle[PSXINT_CDREAD].sCycle += cdReadTime / 10;
return;
}
SetResultSize(1);
Expand Down

0 comments on commit 7625ec4

Please sign in to comment.