[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Simulavr-devel] patch #6776: No segfault on access tonotimplemented
RE: [Simulavr-devel] patch #6776: No segfault on access tonotimplemented I/O registers
Mon, 23 Mar 2009 12:43:45 -0600
> -----Original Message-----
> u.org] On Behalf Of Joerg Wunsch
> Sent: Monday, March 23, 2009 12:34 PM
> To: address@hidden
> Subject: Re: [Simulavr-devel] patch #6776: No segfault on
> access tonotimplemented I/O registers
> As Weddington, Eric wrote:
> > > This seems like an error condition the user
> > > would care about. Shouldn't there also be
> > > a message on stderr?
> > Seems reasonable to me, as doing that (accessing a non-existent
> > address or IO location) would be an error condition in the simulated
> > program. The user should be notified in an unambiguous way.
> OTOH, I think there's also a point for having an option where the
> simulator behaves as best as possible like real silicon, i.e. unknown
> opcodes are executed as a NOP rather than triggering an exception, and
> access to unknown storage yields unpredictable results.
Ooooh, if the user program accesses unknown storage can we do something
upredictable like, I don't know, format their hard drive? ;-)