Skip to content

Commit

Permalink
Update gpulib_thread_if.c to fix compiling for armhf
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhaitian authored Dec 8, 2024
1 parent 92bb759 commit 20eb436
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/gpulib/gpulib_thread_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <pthread.h>
#include "../gpulib/gpu.h"
#include "../../frontend/plugin_lib.h"
Expand Down Expand Up @@ -78,6 +79,7 @@ static void *video_thread_main(void *arg) {

#if defined(__arm__) && defined(__ARM_FP)
// RunFast mode
typedef uint32_t u32;
u32 fpscr = ~0;
__asm__ volatile("vmrs %0, fpscr" : "=r"(fpscr));
fpscr &= ~0x00009f9f;
Expand Down

0 comments on commit 20eb436

Please sign in to comment.