Commit d9701a754e742fc3491d619fad928ac544b32b93
authorDoug Goldstein <cardoe@cardoe.com>
Mon, 10 Mar 2014 01:20:22 +0000 (20:20 -0500)
committerDoug Goldstein <cardoe@cardoe.com>
Mon, 10 Mar 2014 01:35:15 +0000 (20:35 -0500)
tree397981c14c9ed5b781e424fbbb6da3818f7c5388
parent663a5c215aecaad5ca9d921271a7f1af6449ca6e
Message:
core: don't crash if pc is past flash

If we somehow had bad code that pointed us past the end of the flash it
would segfault simavr rather than catching the bad case, this fixes and
that wraps the check in an unlikely() branch hint since its very
unlikely we will take that case.
simavr/sim/sim_core.c