Skip to content

Commit 572e18b

Browse files
authored
Merge branch 'main' into authoring_quiet
2 parents 0fbc420 + cb65197 commit 572e18b

File tree

5 files changed

+21
-32
lines changed

5 files changed

+21
-32
lines changed

.github/workflows/linux-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
container:
1313
image: ghcr.io/grumpycoders/pcsx-redux-build:latest
14+
options: --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined
1415
env:
1516
TEST_RESULTS: /tmp/test-results
1617
steps:

src/mips/common/hardware/pcsxhw.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,28 @@ static __inline__ void pcsx_initMsan() { *((volatile char* const)0x1f802089) = 0
3939
static __inline__ void pcsx_resetMsan() { *((volatile char* const)0x1f802089) = 1; }
4040
static __inline__ void* pcsx_msanAlloc(uint32_t size) {
4141
register uint32_t a0 asm("a0") = size;
42-
return *((void* volatile* const)0x1f80208c);
42+
void* ret;
43+
__asm__ volatile("lw %0, 0x208c(%1)" : "=r"(ret) : "r"(0x1f800000), "r"(a0));
44+
return ret;
4345
}
4446
static __inline__ void pcsx_msanFree(void* ptr) { *((void* volatile* const)0x1f80208c) = ptr; }
4547
static __inline__ void* pcsx_msanRealloc(void* ptr, uint32_t size) {
4648
register void* a0 asm("a0") = ptr;
4749
register uint32_t a1 asm("a1") = size;
48-
return *((void* volatile* const)0x1f802090);
50+
void* ret;
51+
__asm__ volatile("lw %0, 0x2090(%1)" : "=r"(ret) : "r"(0x1f800000), "r"(a0), "r"(a1));
52+
return ret;
4953
}
5054
static __inline__ void pcsx_msanSetChainPtr(void* headerAddr, void* ptrToNext, uint32_t wordCount) {
5155
register void* a0 asm("a0") = ptrToNext;
5256
register uint32_t a1 asm("a1") = wordCount;
53-
*((void* volatile* const)0x1f802094) = headerAddr;
57+
__asm__ volatile("sw %0, 0x2094(%1)" : : "r"(a0), "r"(0x1f800000), "r"(a1));
5458
}
5559
static __inline__ void* pcsx_msanGetChainPtr(void* headerAddr) {
5660
register void* a0 asm("a0") = headerAddr;
57-
return *((void* volatile* const)0x1f802094);
61+
void* ret;
62+
__asm__ volatile("lw %0, 0x2094(%1)" : "=r"(ret) : "r"(0x1f800000), "r"(a0));
63+
return ret;
5864
}
5965

6066
static __inline__ int pcsx_present() { return *((volatile uint32_t* const)0x1f802080) == 0x58534350; }

src/mips/psyqo/examples/pcsxlua/pcsxlua.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ PCSXLuaScene pcsxLuaScene;
6262
void pcsxRegisterVariable(void* address, const char* name) {
6363
register void* a0 asm("a0") = address;
6464
register const char* a1 asm("a1") = name;
65-
__asm__ volatile("" : : "r"(a0), "r"(a1));
66-
*((volatile uint8_t* const)0x1f802081) = 255;
65+
__asm__ volatile("sw %0, 0x2081(%1)" : : "r"(255), "r"(0x1f800000), "r"(a0), "r"(a1));
6766
}
6867

6968
} // namespace

tools/build/Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,22 @@ RUN apt install -y xvfb
3636
RUN apt install -y python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace
3737
RUN apt install -y glibc-tools lcov
3838
RUN apt install -y file
39+
40+
# AppImage dependencies
41+
RUN apt install -y libfuse2t64
42+
RUN apt install -y fuse
43+
3944
WORKDIR /tmp
40-
RUN wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage && \
45+
RUN wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage && \
4146
chmod +x /tmp/appimagetool-x86_64.AppImage && \
4247
cd /opt && /tmp/appimagetool-x86_64.AppImage --appimage-extract && \
4348
mv squashfs-root appimage-tool.AppDir && \
4449
ln -s /opt/appimage-tool.AppDir/AppRun /usr/bin/appimagetool && \
4550
rm /tmp/appimagetool-x86_64.AppImage
4651
WORKDIR /
47-
RUN pip3 install --break-system-packages appimage-builder pydpkg
48-
COPY appimage-dpkg.patch /appimage-dpkg.patch
49-
RUN patch -p 1 < appimage-dpkg.patch
52+
RUN wget -O appimage-builder-x86_64.AppImage https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage
53+
RUN chmod +x appimage-builder-x86_64.AppImage
54+
RUN mv appimage-builder-x86_64.AppImage /usr/local/bin/appimage-builder
5055
RUN apt install -y imagemagick-6.q16 gtk-update-icon-cache appstream
5156
RUN apt install -y squashfs-tools zip zsync
5257

tools/build/appimage-dpkg.patch

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)