Skip to content
Discussion options

You must be logged in to vote

Hmm, you are right, Moira does not handle bus errors correctly. Moira has been testes throughly with everything an Amiga can do, but it is impossible to trigger a bus error on that machine. In fact, I never thought anybody would need bus error support on an emulated CPU.

Anyways, here is the code that writes the wrong frame format:

template <Core C> void
Moira::execException(ExceptionType exc, int nr)
{
    ...
    switch (exc) {

        case EXC_BUS_ERROR:

            // Write stack frame
            writeStackFrame1011<C>(status, reg.pc, reg.pc0, 2);

            // Branch to exception handler
            jumpToVector<C>(2);
            break;
    ...
}

Instead of writeStackFrame1011,…

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@RR7
Comment options

@RR7
Comment options

Answer selected by nk1g
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@RR7
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@RR7
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants