Skip to content

Commit c4073ab

Browse files
committed
Compile fixes for gcc11
1 parent 6743f4c commit c4073ab

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ EE_INCS += -I./include -I$(PS2SDK)/ports/include
55
EE_CFLAGS += -D_DEBUG
66
EE_CXXFLAGS += -D_DEBUG
77
# VU0 code is broken so disable for now
8-
EE_CFLAGS += -DNO_VU0_VECTORS
9-
EE_CXXFLAGS += -DNO_VU0_VECTORS
8+
EE_CFLAGS += -DNO_VU0_VECTORS -DNO_ASM
9+
EE_CXXFLAGS += -DNO_VU0_VECTORS -DNO_ASM
1010

1111
EE_OBJS = \
1212
src/core.o \

include/ps2s/core.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ Core::FToI4(float flp)
119119
{
120120
tU32 fip;
121121

122-
asm __volatile__("qmtc2 %1, vf01 \n"
123-
"vftoi4 vf01, vf01 \n"
124-
"qmfc2 %0, vf01 \n"
122+
asm __volatile__("qmtc2 %1, $vf1 \n"
123+
"vftoi4 $vf1, $vf1 \n"
124+
"qmfc2 %0, $vf1 \n"
125125
: "=r"(fip)
126126
: "r"(flp));
127127

src/texture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ void CTexEnv::SetDimensions(tU32 w, tU32 h)
217217
// perspective tex mapping (but what about plain old (u,v)?? -- FIXME)
218218

219219
int page_width = 64;
220-
unsigned int bpp = GS::GetBitsPerPixel((enum GS::tPSM)gsrTex0.psm);
220+
unsigned int bpp = GS::GetBitsPerPixel((GS::tPSM)gsrTex0.psm);
221221
if (bpp == 8 || bpp == 4)
222222
page_width = 128;
223223

0 commit comments

Comments
 (0)