Option -M is broken.

$ simulavr -d atmega8 -f a.out -M
simulavr: invalid option -- 'M'
AVR-Simulator Version 1.0.0
...
-M                    disable messages for bad I/O and memory references
...

So either it is documentation rot or option recognition is broken.

Such an option is useful for testing "virtual" targets with much more
memory than silicon would provide.  For example many GCC testsuite
would otherwise fail if we didn't pretend that devices have more memory.

The a.out from above was generated with
-Wl,--defsym=__stack=0x1fff -Wl,--defsym=__heap_end=0x80ffff
so that it's highly appreciated to have a means to silence respective
warnings.

Also, what's a bit confusing for me as "user" of simulavr, is that it
talk about internals and simulavr source locations:


WARNING: file ../../../source/simulavr-1.0.0/src/rwmem.cpp: line 115: Invalid read access from IO[0x7ff], PC=0x214 WARNING: file ../../../source/simulavr-1.0.0/src/rwmem.cpp: line 124: Invalid write access to IO[0x7ff]=0x34, PC=0x66 WARNING: file ../../../source/simulavr-1.0.0/src/rwmem.cpp: line 124: Invalid write access to IO[0x7fe]=0x0, PC=0x66 WARNING: file ../../../source/simulavr-1.0.0/src/rwmem.cpp: line 115: Invalid read access from IO[0x7fe], PC=0x214 WARNING: file ../../../source/simulavr-1.0.0/src/rwmem.cpp: line 115: Invalid read access from IO[0x7ff], PC=0x214

Such internals like rwmem.cpp should only be displayed if some
-debug option is on or if simulavr was configured with, say --enable-debug.

For ordinary runs a "WARNING: Invalid read access from IO[0x7ff], PC=0x214" would be just fine.

Thanks,

Johann


_______________________________________________
Simulavr-devel mailing list
Simulavr-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/simulavr-devel

Reply via email to