/[qemu]/qemu/target-ppc/helper.c
ViewVC logotype

Diff of /qemu/target-ppc/helper.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by bellard, Tue Feb 15 23:06:19 2005 UTC revision 1.22 by bellard, Sun Mar 13 17:01:22 2005 UTC
# Line 809  void do_interrupt (CPUState *env) Line 809  void do_interrupt (CPUState *env)
809          msr |= 0x00010000;          msr |= 0x00010000;
810          goto store_current;          goto store_current;
811      case EXCP_NO_FP:      case EXCP_NO_FP:
812            msr &= ~0xFFFF0000;
813          goto store_current;          goto store_current;
814      case EXCP_DECR:      case EXCP_DECR:
815          if (msr_ee == 0) {          if (msr_ee == 0) {
# Line 854  void do_interrupt (CPUState *env) Line 855  void do_interrupt (CPUState *env)
855          return;          return;
856      case EXCP_RFI:      case EXCP_RFI:
857          /* Restore user-mode state */          /* Restore user-mode state */
         tb_flush(env);  
858  #if defined (DEBUG_EXCEPTIONS)  #if defined (DEBUG_EXCEPTIONS)
859          if (msr_pr == 1)          if (msr_pr == 1)
860              printf("Return from exception => 0x%08x\n", (uint32_t)env->nip);              printf("Return from exception => 0x%08x\n", (uint32_t)env->nip);
# Line 887  void do_interrupt (CPUState *env) Line 887  void do_interrupt (CPUState *env)
887      env->nip = excp << 8;      env->nip = excp << 8;
888      env->exception_index = EXCP_NONE;      env->exception_index = EXCP_NONE;
889      /* Invalidate all TLB as we may have changed translation mode */      /* Invalidate all TLB as we may have changed translation mode */
     tlb_flush(env, 1);  
890      /* ensure that no TB jump will be modified as      /* ensure that no TB jump will be modified as
891         the program flow was changed */         the program flow was changed */
892  #ifdef __sparc__  #ifdef __sparc__

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26