diff options
author | Alexander Graf <agraf@suse.de> | 2012-01-25 16:27:26 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-02-02 02:47:46 +0100 |
commit | 3f162d119ef52fda714ebb498fcb4f4b7c354d38 (patch) | |
tree | 9d5a31eb5e617b8255fbd7a8d9f67169f61df6e3 /target-ppc/translate.c | |
parent | 6d3db821c18fdc9727108b5b4bbb38cb7ab5c0e6 (diff) |
PPC: booke206: Check for TLB overrun
Our internal helpers to fetch TLB entries were not able to tell us
that an entry doesn't even exist. Pass an error out if we hit such
a case to not accidently pass beyond the TLB array.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/translate.c')
-rw-r--r-- | target-ppc/translate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c index d8ef7196b4..58a4853a0d 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -6088,6 +6088,7 @@ static void gen_tlbwe_booke206(DisasContext *ctx) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } + gen_update_nip(ctx, ctx->nip - 4); gen_helper_booke206_tlbwe(); #endif } |