Skip to content

Commit 3f47d0c

Browse files
committed
spectranext: fix autoboot behavior
1 parent 0fe8b5e commit 3f47d0c

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

debugger/gdbserver.c

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ static uint8_t action_set_register(const void* arg, void* response);
120120
static uint8_t action_set_breakpoint(const void* arg, void* response);
121121
static uint8_t action_remove_breakpoint(const void* arg, void* response);
122122
static uint8_t action_step_instruction(const void* arg, void* response);
123-
static uint8_t action_autoboot(const void* arg, void* response);
124123

125124
struct action_mem_args_t {
126125
size_t maddr, mlen;
@@ -854,7 +853,8 @@ void gdbserver_schedule_reset(void)
854853

855854
void gdbserver_schedule_autoboot(void)
856855
{
857-
gdbserver_execute_on_main_thread(action_autoboot, NULL, NULL);
856+
spectranext_autoboot = true;
857+
event_add(tstates + 1, gdbserver_reset_event);
858858
}
859859

860860
void gdbserver_refresh_status()
@@ -1125,17 +1125,6 @@ void gdbserver_on_machine_reset(void)
11251125
#endif
11261126
}
11271127

1128-
static uint8_t action_autoboot(const void* arg, void* response)
1129-
{
1130-
(void)arg;
1131-
(void)response;
1132-
1133-
spectranext_autoboot = true;
1134-
xfs_reset();
1135-
machine_reset(0);
1136-
return 0;
1137-
}
1138-
11391128
static uint8_t action_step_instruction(const void* arg, void* response)
11401129
{
11411130
struct action_step_args_t* a = (struct action_step_args_t*)arg;

0 commit comments

Comments
 (0)