Skip to content
Commit 7bdc621b authored by Carlo Caione's avatar Carlo Caione Committed by Anas Nashif
Browse files

qemu_cortex_m0: Disable QEMU icount feature



The NRF timer emulated by QEMU is not behaving correctly when icount is
used.

This is easily reproducible with the following snippet:

  unsigned int key = irq_lock();
  k_busy_wait(15000);
  irq_unlock(key);
  printk("done\n");

where the `printk` is never executed and `k_busy_wait` is never left.

This particular code is only mis-behaving when `-icount` is used:

This works fine:

qemu-system-arm -cpu cortex-m0 -machine microbit -nographic
    -kernel build/zephyr/zephyr.elf -rtc clock=vm

This doesn't work:

qemu-system-arm -cpu cortex-m0 -machine microbit -nographic
    -kernel build/zephyr/zephyr.elf -rtc clock=vm
    -icount shift=6,align=off,sleep=off

Signed-off-by: default avatarCarlo Caione <ccaione@baylibre.com>
parent 7a48ad34
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment