Get tests working again on desktop Linux

This commit is contained in:
Aaron Culliney 2015-09-05 12:22:29 -07:00
parent 3ddfe2953e
commit 3b5f57b0cf
5 changed files with 13 additions and 0 deletions

View File

@ -140,7 +140,13 @@ void test_common_init(bool do_cputhread) {
speaker_init();
MB_Initialize();
#endif
cpu_pause();
reinitialize();
cpu_resume();
extern volatile uint8_t emul_reinitialize;
emul_reinitialize = 0;
}
}

View File

@ -14,6 +14,7 @@
//
#include "testcommon.h"
#include "uthash.h"
#define MSG_SIZE 256

View File

@ -37,6 +37,8 @@
#define TYPE_TRIGGER_WATCHPT() \
test_type_input("POKE7987,255:REM TRIGGER DEBUGGER\r")
extern pthread_mutex_t interface_mutex; // TODO FIXME : raw access to CPU mutex because stepping debugger ...
static void testdisk_setup(void *arg) {
RESET_INPUT();
apple_ii_64k[0][MIXSWITCH_ADDR] = 0x00;

View File

@ -11,6 +11,8 @@
#include "testcommon.h"
extern pthread_mutex_t interface_mutex; // TODO FIXME : raw access to CPU mutex because stepping debugger ...
static void testdisplay_setup(void *arg) {
test_common_setup();
apple_ii_64k[0][MIXSWITCH_ADDR] = 0x00;

View File

@ -18,6 +18,8 @@
#define TYPE_TRIGGER_WATCHPT() \
test_type_input("POKE7987,255:REM TRIGGER DEBUGGER\r")
extern pthread_mutex_t interface_mutex; // TODO FIXME : raw access to CPU mutex because stepping debugger ...
static void testvm_setup(void *arg) {
RESET_INPUT();
apple_ii_64k[0][MIXSWITCH_ADDR] = 0x00;