Set proper BadVAddress value for unaligned instruction fetch.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2629 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e04bcc691b
commit
cbeb0857da
@ -4629,6 +4629,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx)
|
|||||||
|
|
||||||
/* make sure instructions are on a word boundary */
|
/* make sure instructions are on a word boundary */
|
||||||
if (ctx->pc & 0x3) {
|
if (ctx->pc & 0x3) {
|
||||||
|
env->CP0_BadVAddr = ctx->pc;
|
||||||
generate_exception(ctx, EXCP_AdEL);
|
generate_exception(ctx, EXCP_AdEL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user