cdrom: Align read buffers to 64 bytes
authorPaul Cercueil <paul@crapouillou.net>
Tue, 15 Apr 2025 11:18:05 +0000 (13:18 +0200)
committernotaz <notasas@gmail.com>
Tue, 22 Apr 2025 22:07:51 +0000 (01:07 +0300)
commit20a88ae9db9732e9e6b02316cba5b9c45d73764a
tree8c1f5dbf25735f88a41ff26cd9a536fad6c591a4
parent50fd258a46b45a39eddc41ce59f323671df17229
cdrom: Align read buffers to 64 bytes

Align the address and size of read buffers to 64 bytes, which
should be bigger or equal than the size of the cache lines on most
systems.

This allows hardware CD-ROM implementations to perform reads using DMA,
which generally have tight requirements on alignment.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
libpcsxcore/cdrom-async.c
libpcsxcore/cdrom.c
libpcsxcore/cdrom.h