Commit 335869fab028466961751b8e2a5a9ebd1ac50d46
authorMichel Pollet <buserror@gmail.com>
Tue, 22 Feb 2011 12:48:31 +0000 (12:48 +0000)
committerMichel Pollet <buserror@gmail.com>
Tue, 22 Feb 2011 12:48:31 +0000 (12:48 +0000)
treec918da54719b8d9505e01015947fd6b6c63b944a
parentc1c2133e6eea59d30d9ffaad538c0d0252016cd5
Message:
core: Introduce run() and sleep() callbacks

It seems that the default 'run_avr' function was penalized by
some tests made that were only useful when gdb was active.

This patch introduces two version of the critical run_avr, one for
"raw" running, and one for gdb.

It also introduces a sleep() callback for similar reasons. Ir can
also be used to run unit testing at 100% speed instead of having
random sleep code during execution.

Signed-off-by: Michel Pollet <buserror@gmail.com>
3 files changed:
simavr/sim/sim_avr.c
simavr/sim/sim_avr.h
simavr/sim/sim_gdb.c