about summary refs log tree commit diff stats
path: root/src/emu/x64test.c
diff options
context:
space:
mode:
authorYang Liu <numbksco@gmail.com>2024-09-05 17:07:27 +0800
committerGitHub <noreply@github.com>2024-09-05 11:07:27 +0200
commit4e63b82f5eda8995a2b5cd09d64304ac9e30dbd6 (patch)
tree0141a4651e55dd11df71e41b40e45df4106535c2 /src/emu/x64test.c
parent6bc2abae3b71ad1aea750fbfb433310f6e45bbac (diff)
downloadbox64-4e63b82f5eda8995a2b5cd09d64304ac9e30dbd6.tar.gz
box64-4e63b82f5eda8995a2b5cd09d64304ac9e30dbd6.zip
[CI] Refactored CI (#1795)
* [CI] Enable Box32 tests on LA64

* upgrade QEMU

* [COSIM] Removed thread-safe tests

* Use regular cosim in CI

* [CI] Simplified "Test Box64"

* exclude certain tests when testing with cosim

* review

* box64.pod too
Diffstat (limited to 'src/emu/x64test.c')
-rw-r--r--src/emu/x64test.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/emu/x64test.c b/src/emu/x64test.c
index 95021ca4..135a120c 100644
--- a/src/emu/x64test.c
+++ b/src/emu/x64test.c
@@ -22,8 +22,6 @@
 #include "bridge.h"
 #include "signals.h"
 
-static pthread_mutex_t mutex_global_test;
-
 void print_banner(x64emu_t* ref)
 {
     printf_log(LOG_NONE, "Warning, difference between %s Interpreter and Dynarec in %p (%02x %02x %02x %02x %02x %02x %02x %02x)\n"\
@@ -154,8 +152,6 @@ void x64test_step(x64emu_t* ref, uintptr_t ip)
         test->emu = NewX64Emu(my_context, ip, (uintptr_t)ref->init_stack, ref->size_stack, 0);
         CopyEmu(test->emu, ref);
     } else {
-        if (box64_dynarec_test == 2 && test->test && test->clean)
-            pthread_mutex_unlock(&mutex_global_test);
         // check if IP is same, else, sync
         uintptr_t prev_ip = test->emu->ip.q[0];
         if(test->clean)
@@ -167,20 +163,8 @@ void x64test_step(x64emu_t* ref, uintptr_t ip)
     // do a dry single step
     test->memsize = 0;
     test->clean = 1;
-    test->notest = 0;
     ref->old_ip = ip;
 
-    if (box64_dynarec_test == 2) pthread_mutex_lock(&mutex_global_test);
     RunTest(test);
-    if (box64_dynarec_test == 2 && test->notest) pthread_mutex_unlock(&mutex_global_test);
     // this will be analyzed next step
 }
-
-void x64test_init()
-{
-    pthread_mutexattr_t attr;
-    pthread_mutexattr_init(&attr);
-    pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK);
-    pthread_mutex_init(&mutex_global_test, &attr);
-    pthread_mutexattr_destroy(&attr);
-}