--- target-mips/translate.c 23 Apr 2006 15:21:24 -0000 1.12 +++ target-mips/translate.c 26 Apr 2006 14:02:19 -0000 @@ -1320,6 +1707,12 @@ uint16_t op, op1; int16_t imm; + /* make sure instructions are on a word boundary */ + if (ctx->pc & 0x3) { + generate_exception(ctx, EXCP_AdEL); + return; + } + if ((ctx->hflags & MIPS_HFLAG_BMASK) == MIPS_HFLAG_BL) { /* Handle blikely not taken case */ MIPS_DEBUG("blikely condition (%08x)", ctx->pc + 4);