Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/tools/m65.c
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,21 @@ int main(int argc, char **argv)
if (hyppo) {
log_info("replacing hyppo...");
real_stop_cpu();
load_file(hyppo, 0xfff8000, patchKS);

// Reset CPU, and then stop it quickly so that we know it's still in the hypervisor
monitor_sync();
slow_write(fd, "\r!\r", 3);
usleep(100000);
slow_write(fd, "\rt1\r", 4);
monitor_sync();
sleep(1);

load_file(hyppo, 0xfff8000, patchKS);

// Reset CPU after loading new HYPPO
slow_write(fd, "\r!\r", 3);
monitor_sync();
sleep(2);
}
if (flashmenufile) {
log_info("replacing flashmenu");
Expand Down
Loading