X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fgpu.h;h=c924b67b2c5880166455ed8406e6626b4248a79c;hb=7a8d521fba9c86ae7b51369ce061bf63112b745f;hp=018d353ab05733fe572ed6ae63a803842a5f62cc;hpb=0486fdc9bd313ce2f01dafa4d3c151f40e2c729b;p=pcsx_rearmed.git diff --git a/libpcsxcore/gpu.h b/libpcsxcore/gpu.h index 018d353a..c924b67b 100644 --- a/libpcsxcore/gpu.h +++ b/libpcsxcore/gpu.h @@ -1,3 +1,19 @@ +/* Pcsx - Pc Psx Emulator + * Copyright (C) 1999-2016 Pcsx Team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ /* * q: Why bother with GPU stuff in a plugin-based emu core? @@ -5,6 +21,9 @@ * that GPU plugin doesn't. */ +#ifndef __GPU_H__ +#define __GPU_H__ + #define PSXGPU_LCF (1<<31) #define PSXGPU_nBUSY (1<<26) #define PSXGPU_ILACE (1<<22) @@ -19,6 +38,8 @@ #define PSXGPU_TIMING_BITS (PSXGPU_LCF | PSXGPU_nBUSY) #define gpuSyncPluginSR() { \ - HW_GPU_STATUS &= PSXGPU_TIMING_BITS; \ - HW_GPU_STATUS |= GPU_readStatus() & ~PSXGPU_TIMING_BITS; \ + HW_GPU_STATUS &= SWAP32(PSXGPU_TIMING_BITS); \ + HW_GPU_STATUS |= SWAP32(GPU_readStatus() & ~PSXGPU_TIMING_BITS); \ } + +#endif /* __GPU_H__ */