RTEMS | microblaze: enhance exception diagnostics (!841)
Sam Price (@TheSamPrice)
gitlab at rtems.org
Mon Dec 8 05:56:18 UTC 2025
Sam Price commented on a discussion on cpukit/score/cpu/microblaze/cpu.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/841#note_136933
> ( 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 );
> +
tried applying clang tidy file, im running an older version of clang tidy, unable to use official one.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/841#note_136933
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/20251208/f160ed0b/attachment.htm>
More information about the bugs
mailing list