Skip to contentSkip to conversation

target/m68k: handle EXCP_SEMIHOSTING in (non-ColdFire) m68k

PATCH New Matt Jacobson 1 participant 1 message Jun 19

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/m68k: handle EXCP_SEMIHOSTING in (non-ColdFire) m68k

Commit 0815c228bd1 attempted to enable semihosting support for non- ColdFire m68k. But in do_interrupt_all(), we take a different path for regular m68k, and that path did not recognize EXCP_SEMIHOSTING. Fix that by adding equivalent code to m68k_interrupt_all().

---
 target/m68k/op_helper.c | 4 ++++
 1 file changed, 4 insertions(+)
target/m68k/op_helper.c +4 -0
index 8148a8852e..be77b8d567 100644
@@ -305,6 +305,10 @@ static void m68k_interrupt_all(CPUM68KState *env, int is_hw)
             /* Return from an exception.  */
             m68k_rte(env);
             return;
+        case EXCP_SEMIHOSTING:
+            do_m68k_semihosting(env, env->dregs[0]);
+            qemu_plugin_vcpu_hostcall_cb(cs, last_pc);
+            return;
         }
     }
 
Signature · 1 line
2.54.0