simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Simulavr-devel] simulavr: invalid option -- 'M'


From: Georg-Johann Lay
Subject: [Simulavr-devel] simulavr: invalid option -- 'M'
Date: Fri, 7 Jul 2017 17:22:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]