From febb739d008ef64d0492a0c7e13b3dff2f7e20d6 Mon Sep 17 00:00:00 2001 From: Alwin Berger Date: Tue, 18 Jun 2024 15:57:32 +0200 Subject: [PATCH] WIP: work around iothread lock --- hw/intc/armv7m_nvic.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/intc/armv7m_nvic.c b/hw/intc/armv7m_nvic.c index 2a8e48a8bc..5b3d11f9a1 100644 --- a/hw/intc/armv7m_nvic.c +++ b/hw/intc/armv7m_nvic.c @@ -2762,10 +2762,10 @@ type_init(armv7m_nvic_register_types) #include "include/qom/object.h" void libafl_send_irq(int irqn); void libafl_send_irq(int irqn) { - bool haslock = qemu_mutex_iothread_locked(); - if (!haslock) { - qemu_mutex_lock_iothread(); - } + // bool haslock = qemu_mutex_iothread_locked(); + // if (!haslock) { + // qemu_mutex_lock_iothread(); + // } // CPUState *cpu; //CPU_FOREACH(cpu) { //CPUARMState* env = cpu->env_ptr; @@ -2774,8 +2774,8 @@ void libafl_send_irq(int irqn) { // set_irq_level(nvic, irqn, 0); armv7m_nvic_set_pending(nvic, irqn+16, false); //} - if (!haslock) { - qemu_mutex_unlock_iothread(); - } + // if (!haslock) { + // qemu_mutex_unlock_iothread(); + // } } /* End LibAFL instrumentation */ \ No newline at end of file