mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-02 23:11:53 -06:00
fixed MMU bug on code page boundary
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1362 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
2b03a7a5bc
commit
d39c0b990a
1 changed files with 8 additions and 4 deletions
|
@ -1545,6 +1545,10 @@ static inline int gen_intermediate_code_internal(TranslationBlock * tb,
|
||||||
/* if the next PC is different, we abort now */
|
/* if the next PC is different, we abort now */
|
||||||
if (dc->pc != (last_pc + 4))
|
if (dc->pc != (last_pc + 4))
|
||||||
break;
|
break;
|
||||||
|
/* if we reach a page boundary, we stop generation so that the
|
||||||
|
PC of a TT_TFAULT exception is always in the right page */
|
||||||
|
if ((dc->pc & (TARGET_PAGE_SIZE - 1)) == 0)
|
||||||
|
break;
|
||||||
/* if single step mode, we generate only one instruction and
|
/* if single step mode, we generate only one instruction and
|
||||||
generate an exception */
|
generate an exception */
|
||||||
if (env->singlestep_enabled) {
|
if (env->singlestep_enabled) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue