]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target-lm32/helper.c
semihosting: create SemihostingConfig structure and semihost.h
[mirror_qemu.git] / target-lm32 / helper.c
index 7a41f29730373d19dfcf85858d1a9645df89783b..a88aa5ad168555704f3c09321420083e95b489ab 100644 (file)
@@ -20,6 +20,7 @@
 #include "cpu.h"
 #include "qemu/host-utils.h"
 #include "sysemu/sysemu.h"
+#include "exec/semihost.h"
 
 int lm32_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int rw,
                               int mmu_idx)
@@ -162,7 +163,7 @@ void lm32_cpu_do_interrupt(CPUState *cs)
 
     switch (cs->exception_index) {
     case EXCP_SYSTEMCALL:
-        if (unlikely(semihosting_enabled)) {
+        if (unlikely(semihosting_enabled())) {
             /* do_semicall() returns true if call was handled. Otherwise
              * do the normal exception handling. */
             if (lm32_cpu_do_semihosting(cs)) {