projects
/
sx
/
simavr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
regExp
home
|
summary
|
tags
|
heads
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
raw
|
patch
| inline |
side by side
(parent:
d9701a7
)
Commit
f17ac8250980a575b2bc4d9e4968102075bd89d9
author
Doug Goldstein
<cardoe@cardoe.com>
Mon, 10 Mar 2014 01:32:05 +0000
(20:32 -0500)
committer
Doug Goldstein
<cardoe@cardoe.com>
Tue, 11 Mar 2014 01:12:23 +0000
(20:12 -0500)
Its reasonably safe to assume that 'codeend' can not be past 'flashend'
so that's a good default value.
simavr/sim/sim_avr.c
patch
|
blob
|
history
|
download
diff --git
a/simavr/sim/sim_avr.c
b/simavr/sim/sim_avr.c
index 0366b58f0866ab5d081783491fe1e5b283d905e1..73b049a65282f68c8ca9c74de691e0aecac758a2 100644
(file)
--- a/
simavr/sim/sim_avr.c
+++ b/
simavr/sim/sim_avr.c
@@
-70,6
+70,7
@@
int avr_init(avr_t * avr)
{
avr->flash = malloc(avr->flashend + 1);
memset(avr->flash, 0xff, avr->flashend + 1);
+ avr->codeend = avr->flashend;
avr->data = malloc(avr->ramend + 1);
memset(avr->data, 0, avr->ramend + 1);
#ifdef CONFIG_SIMAVR_TRACE