Commit 7a77ebb65ab202837e4713f8758f096a39c0d95a
authorMichel Pollet <buserror@gmail.com>
Wed, 10 Jan 2018 09:26:54 +0000 (09:26 +0000)
committerMichel Pollet <buserror@gmail.com>
Wed, 10 Jan 2018 09:26:54 +0000 (09:26 +0000)
tree289a4aade6ed1b9eb3004f4a495f72f620e40483
parent518c3746fd032147bef5cbb5d6461c8628faa30a
Message:
core: Added support for PC overflow

Added a special opcode at the end of flash to catch PC overflow, and
'wrap it'. Also log the condition.
This allow that case to be handled without having to add a
modulo/division for each instruction.

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