Skip to content

Commit

Permalink
boards: arm: mps2_an385: Enable QEMU icount mode
Browse files Browse the repository at this point in the history
This commit enables the QEMU icount mode for `mps2_an385`, in order to
decouple the host clock from the emulated guest clock.

This prevents guest timing instability from causing test failures when
the host CPU load is very high.

The icount `shift` value of 7 was empirically chosen to allow the tests
to complete in both realistic and reasonable amount of time.

The following are quick notes on the parameters used:

* -icount shift=7: Execute one instruction every 128ns of virtual time
* -icount align=off: Do not synchronise the host and guest clocks
* -icount sleep=off: Advance virtual time without sleeping/waiting
* -rtc clock=vm: Isolate the guest RTC time from the host

Signed-off-by: Stephanos Ioannidis <[email protected]>
  • Loading branch information
stephanosio committed Apr 29, 2020
1 parent 614d82a commit f98a882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boards/arm/mps2_an385/board.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set(QEMU_FLAGS_${ARCH}
-machine mps2-an385
-nographic
-vga none
-icount auto
-icount shift=7,align=off,sleep=off -rtc clock=vm
)

board_set_debugger_ifnset(qemu)

0 comments on commit f98a882

Please sign in to comment.