Changeset 3b712407 in mainline for arch/mips32/src/exception.c


Ignore:
Timestamp:
2006-03-23T21:15:59Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e1be3b6
Parents:
38ee55b
Message:

Fixed bad rflags masking in amd64.
Added TLS get address instruction emulation for mips.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/src/exception.c

    r38ee55b r3b712407  
    8484}
    8585
     86static void reserved_instr_exception(int n, istate_t *istate)
     87{
     88        if (*((__u32 *)istate->epc) == 0x7c03e83b) {
     89                ASSERT(THREAD);
     90                istate->epc += 4;
     91                istate->v1 = istate->k1;
     92        } else {
     93                print_regdump(istate);
     94                panic("reserved instruction");
     95        }
     96}
     97
    8698static void breakpoint_exception(int n, istate_t *istate)
    8799{
     
    143155                exc_register(i, "undef", (iroutine) unhandled_exception);
    144156        exc_register(EXC_Bp, "bkpoint", (iroutine) breakpoint_exception);
     157        exc_register(EXC_RI, "resinstr", (iroutine) reserved_instr_exception);
    145158        exc_register(EXC_Mod, "tlb_mod", (iroutine) tlbmod_exception);
    146159        exc_register(EXC_TLBL, "tlbinvl", (iroutine) tlbinv_exception);
Note: See TracChangeset for help on using the changeset viewer.