We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68eccad commit 10ad804Copy full SHA for 10ad804
core/coproc.c
@@ -11,11 +11,17 @@ coproc_state_t coproc;
11
12
void coproc_reset(void) {
13
gui_console_printf("[CEmu] Reset Coprocessor Interface...\n");
14
- arm_destroy(coproc.arm);
15
- memset(&coproc, 0, sizeof(coproc));
16
- if (asic.python) {
+ if (asic.python && !coproc.arm) {
17
coproc.arm = arm_create();
18
}
+ if (coproc.arm) {
+ if (asic.python) {
19
+ arm_reset(coproc.arm);
20
+ } else {
21
+ arm_destroy(coproc.arm);
22
+ memset(&coproc, 0, sizeof(coproc));
23
+ }
24
25
26
27
bool coproc_load(const char *path) {
0 commit comments