Wed, 16 Apr 2014 02:20:43 -0600
fixed bus error handling for real this time (save registers before every instruction and push the saved registers if a bus error occurs, since the instruction may have changed registers before the bus error, and also stop the instruction immediately with longjmp so it won't change memory after the bus error)
This isn't actually what a real 68k does, but it is a good enough approximation. A real 68k will jump back into the middle of the faulted instruction and resume it from the memory access that faulted as opposed to restarting from the beginning like this CPU emulation does. It would be a lot harder to do that with the way this CPU library is designed. Newer versions of MESS basically do the same thing (they use a newer version of this library).
1 From private email, dated 2010-Nov-26, 20:43 GMT:
3 From: Karl Stenerud <kstenerud@gmail.com>
4 Subject: Re: Musashi 68k emulator
6 On 2010-11-26, at 12:36 PM, Philip Pemberton wrote:
8 > > I do have one question, though more related to licensing than the core itself...
9 > >
10 > > I was planning to release my emulator under an open-source licence, probably the GPL or something along those lines (the worst case scenario IMO would be someone adding a ton of nice features then refusing to release the source).
11 > >
12 > > The "non-commercial use only" restriction in the Musashi license would seem to be at odds with the GPL, and would make it somewhat more difficult to tie in GPL-licensed libraries. Is there any possibility of getting v3.31 released under a less restrictive license, maybe GPL or LGPL?
13 > >
15 Sure, no problem. I usually release stuff under an Apache license nowadays, but feel free to pick any FOSS license.