Advertisement
Guest User

Untitled

a guest
Apr 7th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. diff --git a/target-lm32/helper.c b/target-lm32/helper.c
  2. index 318e2cf..ee6d61a 100644
  3. --- a/target-lm32/helper.c
  4. +++ b/target-lm32/helper.c
  5. @@ -76,11 +76,14 @@ void do_interrupt(CPUState *env)
  6. env->regs[R_BA] = env->pc;
  7. env->ie |= (env->ie & IE_IE) ? IE_BIE : 0;
  8. env->ie &= ~IE_IE;
  9. + env->pc = env->deba + (env->exception_index * 32);
  10. +#if 0
  11. if (env->dc & DC_RE) {
  12. env->pc = env->deba + (env->exception_index * 32);
  13. } else {
  14. env->pc = env->eba + (env->exception_index * 32);
  15. }
  16. +#endif
  17. log_cpu_state_mask(CPU_LOG_INT, env, 0);
  18. break;
  19. default:
  20. diff --git a/target-lm32/translate.c b/target-lm32/translate.c
  21. index 75902b8..2681e43 100644
  22. --- a/target-lm32/translate.c
  23. +++ b/target-lm32/translate.c
  24. @@ -621,6 +621,7 @@ static void dec_scall(DisasContext *dc)
  25. tcg_gen_andi_tl(cpu_ie, cpu_ie, ~IE_IE);
  26.  
  27. if (dc->imm5 == 7) {
  28. +#if 0
  29. /* IE.EIE = IE.IE */
  30. tcg_gen_ori_tl(cpu_ie, cpu_ie, IE_EIE);
  31. tcg_gen_brcondi_tl(TCG_COND_EQ, t0, IE_IE, l1);
  32. @@ -632,8 +633,10 @@ static void dec_scall(DisasContext *dc)
  33. tcg_temp_free(t0);
  34.  
  35. tcg_gen_movi_tl(cpu_pc, dc->pc);
  36. +#endif
  37. t_gen_raise_exception(dc, EXCP_SYSTEMCALL);
  38. } else {
  39. +#if 0
  40. /* IE.BIE = IE.IE */
  41. tcg_gen_ori_tl(cpu_ie, cpu_ie, IE_BIE);
  42. tcg_gen_brcondi_tl(TCG_COND_EQ, t0, IE_IE, l1);
  43. @@ -645,6 +648,7 @@ static void dec_scall(DisasContext *dc)
  44. tcg_temp_free(t0);
  45.  
  46. tcg_gen_movi_tl(cpu_pc, dc->pc);
  47. +#endif
  48. t_gen_raise_exception(dc, EXCP_BREAKPOINT);
  49. }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement