RTEMS | microblaze: enhance exception diagnostics (!841)

Kinsey Moore (@opticron) gitlab at rtems.org
Tue Nov 25 14:39:00 UTC 2025




Kinsey Moore started a new discussion on cpukit/score/cpu/microblaze/cpu.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/841#note_136310

 >      ( ctx->msr & MICROBLAZE_MSR_C ) ? "C " : "",
 >      ( ctx->msr & MICROBLAZE_MSR_IE ) ? "IE " : ""
 >    );
 > +
 > +  const char * esr_ec_txt = "?";
 > +  int exception_ind = 0;
 > +  int esr_ec = ctx->esr & 0x1f;
 > +  for (;exception_ind < sizeof(esr_ec_codes)/sizeof(esr_ec_codes[0]);exception_ind++)
 > +  {
 > +    if(esr_ec_codes[exception_ind].id == esr_ec){
 > +      esr_ec_txt = esr_ec_codes[exception_ind].text;
 > +    }
 > +  }
 > +  printk("ESR: %s\n",esr_ec_txt );
 > +  printk("PC:  %p\n", ctx->r17 );
 > +

I would recommend applying formatting suggestions, here, too.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/841#note_136310
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20251125/154cfaef/attachment-0001.htm>


More information about the bugs mailing list